mirror of
https://github.com/XevianLight/Aphelion.git
synced 2026-05-11 01:50:56 +01:00
RocketEntity added. Uses RocketRenderer and RocketStructure to render blocks. RocketStructure supports volumes up to 128^3.
This commit is contained in:
@@ -68,7 +68,8 @@ public class VacuumArcFurnaceController extends BaseEntityBlock {
|
||||
.sound(SoundType.NETHERITE_BLOCK)
|
||||
.destroyTime(2f)
|
||||
.explosionResistance(10f)
|
||||
.requiresCorrectToolForDrops();
|
||||
.requiresCorrectToolForDrops()
|
||||
.lightLevel(state -> state.getValue(BlockStateProperties.LIT) ? 15 : 0);
|
||||
}
|
||||
|
||||
public static Item.Properties getItemProperties() {
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class BaseMultiblockDummyBlockEntity extends BlockEntity implements IMultiblockPart {
|
||||
@Nullable private BlockPos controllerPos;
|
||||
private BlockState mimicing = Blocks.AIR.defaultBlockState();
|
||||
private BlockState mimicking = Blocks.AIR.defaultBlockState();
|
||||
|
||||
@Nullable
|
||||
private ItemStackHandler getControllerInventory() {
|
||||
@@ -116,7 +116,7 @@ public class BaseMultiblockDummyBlockEntity extends BlockEntity implements IMult
|
||||
protected void saveAdditional(CompoundTag tag, HolderLookup.Provider registries) {
|
||||
super.saveAdditional(tag, registries);
|
||||
if (controllerPos != null) tag.putLong("controller", controllerPos.asLong());
|
||||
tag.put("mimic", NbtUtils.writeBlockState(mimicing));
|
||||
tag.put("mimic", NbtUtils.writeBlockState(mimicking));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -170,12 +170,12 @@ public class BaseMultiblockDummyBlockEntity extends BlockEntity implements IMult
|
||||
|
||||
@Override
|
||||
public BlockState getMimicing() {
|
||||
return mimicing;
|
||||
return mimicking;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMimicing(BlockState newState) {
|
||||
mimicing = newState;
|
||||
mimicking = newState;
|
||||
setChanged();
|
||||
if (level != null) {
|
||||
level.sendBlockUpdated(worldPosition, getBlockState(), getBlockState(), 3);
|
||||
|
||||
Reference in New Issue
Block a user