-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec1c4c7
commit 3d00e90
Showing
21 changed files
with
800 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
fabric/src/main/java/ziyue/tjmetro/mod/block/BlockAPGDoorTianjin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package ziyue.tjmetro.mod.block; | ||
|
||
import org.mtr.mapping.holder.BlockPos; | ||
import org.mtr.mapping.holder.BlockState; | ||
import org.mtr.mapping.holder.Item; | ||
import org.mtr.mapping.mapper.BlockEntityExtension; | ||
import org.mtr.mod.block.BlockPSDAPGDoorBase; | ||
import ziyue.tjmetro.mod.BlockEntityTypes; | ||
import ziyue.tjmetro.mod.ItemList; | ||
import ziyue.tjmetro.mod.block.base.BlockFlagAPGTianjin; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BlockAPGDoorTianjin extends BlockPSDAPGDoorBase implements BlockFlagAPGTianjin | ||
{ | ||
@Override | ||
protected boolean isAPG() { | ||
return true; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public Item asItem2() { | ||
return ItemList.APG_DOOR_TIANJIN.get(); | ||
} | ||
|
||
@Override | ||
public BlockEntityExtension createBlockEntity(BlockPos blockPos, BlockState blockState) { | ||
return new BlockEntity(blockPos, blockState); | ||
} | ||
|
||
public static class BlockEntity extends BlockPSDAPGDoorBase.BlockEntityBase { | ||
public BlockEntity(BlockPos pos, BlockState state) { | ||
super(BlockEntityTypes.APG_DOOR_TIANJIN.get(), pos, state); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
fabric/src/main/java/ziyue/tjmetro/mod/block/BlockAPGGlassEndTianjin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package ziyue.tjmetro.mod.block; | ||
|
||
import org.mtr.mapping.holder.Item; | ||
import org.mtr.mod.block.BlockAPGGlassEnd; | ||
import ziyue.tjmetro.mod.ItemList; | ||
import ziyue.tjmetro.mod.block.base.BlockFlagAPGTianjin; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BlockAPGGlassEndTianjin extends BlockAPGGlassEnd implements BlockFlagAPGTianjin | ||
{ | ||
@Override | ||
protected boolean isAPG() { | ||
return true; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public Item asItem2() { | ||
return ItemList.APG_GLASS_END_TIANJIN.get(); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
fabric/src/main/java/ziyue/tjmetro/mod/block/BlockAPGGlassTianjin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package ziyue.tjmetro.mod.block; | ||
|
||
import org.mtr.mapping.holder.BlockPos; | ||
import org.mtr.mapping.holder.BlockState; | ||
import org.mtr.mapping.holder.Item; | ||
import org.mtr.mapping.mapper.BlockEntityExtension; | ||
import org.mtr.mod.block.BlockAPGGlass; | ||
import ziyue.tjmetro.mod.ItemList; | ||
import ziyue.tjmetro.mod.block.base.BlockFlagAPGTianjin; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BlockAPGGlassTianjin extends BlockAPGGlass implements BlockFlagAPGTianjin | ||
{ | ||
@Override | ||
protected boolean isAPG() { | ||
return true; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public Item asItem2() { | ||
return ItemList.APG_GLASS_TIANJIN.get(); | ||
} | ||
|
||
@Override | ||
public BlockEntityExtension createBlockEntity(BlockPos blockPos, BlockState blockState) { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
fabric/src/main/java/ziyue/tjmetro/mod/block/base/BlockFlagAPGTianjin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ziyue.tjmetro.mod.block.base; | ||
|
||
public interface BlockFlagAPGTianjin | ||
{ | ||
} |
5 changes: 5 additions & 0 deletions
5
fabric/src/main/java/ziyue/tjmetro/mod/block/base/BlockFlagPSDTianjin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ziyue.tjmetro.mod.block.base; | ||
|
||
public interface BlockFlagPSDTianjin | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
fabric/src/main/resources/assets/tjmetro/blockstates/apg_door_tianjin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "mtr:block/apg_door" | ||
} | ||
} | ||
} |
Oops, something went wrong.