-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add separate block entity types for infinite dispensers and droppers
- Loading branch information
Showing
5 changed files
with
71 additions
and
13 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
17 changes: 17 additions & 0 deletions
17
src/main/java/xyz/nucleoid/extras/lobby/block/InfiniteDispenserBlockEntity.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,17 @@ | ||
package xyz.nucleoid.extras.lobby.block; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.entity.BlockEntityType; | ||
import net.minecraft.block.entity.DispenserBlockEntity; | ||
import net.minecraft.util.math.BlockPos; | ||
import xyz.nucleoid.extras.lobby.NEBlocks; | ||
|
||
public class InfiniteDispenserBlockEntity extends DispenserBlockEntity { | ||
protected InfiniteDispenserBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state) { | ||
super(type, pos, state); | ||
} | ||
|
||
public InfiniteDispenserBlockEntity(BlockPos pos, BlockState state) { | ||
this(NEBlocks.INFINITE_DISPENSER_ENTITY, pos, state); | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/main/java/xyz/nucleoid/extras/lobby/block/InfiniteDropperBlockEntity.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,17 @@ | ||
package xyz.nucleoid.extras.lobby.block; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.util.math.BlockPos; | ||
import xyz.nucleoid.extras.lobby.NEBlocks; | ||
|
||
public class InfiniteDropperBlockEntity extends InfiniteDispenserBlockEntity { | ||
public InfiniteDropperBlockEntity(BlockPos pos, BlockState state) { | ||
super(NEBlocks.INFINITE_DROPPER_ENTITY, pos, state); | ||
} | ||
|
||
@Override | ||
protected Text getContainerName() { | ||
return Text.translatable("container.dropper"); | ||
} | ||
} |