Added Block Breaker and Block Placer Machine. Huge thanks to SimonFlapse
* Added advancements crafting data for block breaker and placer (From 7a31de7b869e67697f85aeca9f0a5099c6bc7d62) Added Block Breaker Machine (#2871) * Added a new machine that can break blocks in front of it (From e56a51da2b0c4e144cdf70ebff53d7097e81b5ce) Added Block Placer Machine * Added a new machine that can place blocks in front of it (From e80de2ec82e0a14f161137e4b147bb455a839e3d) Added Block Breaker and Placer recipe (From dccdf76eacb8ceb7075897170e098bc346b8b4db) Break blocks instead of removing + Refactoring
This commit is contained in:
parent
c8ca8a5aa3
commit
7f2912009b
38 changed files with 1543 additions and 10 deletions
|
@ -66,7 +66,7 @@ import java.util.Optional;
|
|||
/**
|
||||
* Created by modmuss50 on 04/11/2016.
|
||||
*/
|
||||
public class MachineBaseBlockEntity extends BlockEntity implements BlockEntityTicker<MachineBaseBlockEntity>, IUpgradeable, IUpgradeHandler, IListInfoProvider, Inventory, SidedInventory {
|
||||
public class MachineBaseBlockEntity extends BlockEntity implements BlockEntityTicker<MachineBaseBlockEntity>, IUpgradeable, IUpgradeHandler, IListInfoProvider, Inventory, SidedInventory, RedstoneConfigurable {
|
||||
|
||||
public RebornInventory<MachineBaseBlockEntity> upgradeInventory = new RebornInventory<>(getUpgradeSlotCount(), "upgrades", 1, this, (slotID, stack, face, direction, blockEntity) -> true);
|
||||
private SlotConfiguration slotConfiguration;
|
||||
|
@ -518,6 +518,7 @@ public class MachineBaseBlockEntity extends BlockEntity implements BlockEntityTi
|
|||
return redstoneConfiguration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive(RedstoneConfiguration.Element element) {
|
||||
return redstoneConfiguration.isActive(element);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package reborncore.common.blockentity;
|
||||
|
||||
public interface RedstoneConfigurable {
|
||||
boolean isActive(RedstoneConfiguration.Element element);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue