This commit is contained in:
parent
2b0e7555b5
commit
7d72aefec6
@ -50,8 +50,8 @@ public class HolographicSkyBlock extends EnergyBlock {
|
|||||||
return state.get(POWERED) ? BlockRenderType.ENTITYBLOCK_ANIMATED : BlockRenderType.MODEL;
|
return state.get(POWERED) ? BlockRenderType.ENTITYBLOCK_ANIMATED : BlockRenderType.MODEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Environment(EnvType.CLIENT)
|
|
||||||
@Override
|
@Override
|
||||||
|
@Environment(EnvType.CLIENT)
|
||||||
public boolean isSideInvisible(BlockState state, BlockState stateFrom, Direction direction) {
|
public boolean isSideInvisible(BlockState state, BlockState stateFrom, Direction direction) {
|
||||||
return state == stateFrom || super.isSideInvisible(state, stateFrom, direction);
|
return state == stateFrom || super.isSideInvisible(state, stateFrom, direction);
|
||||||
}
|
}
|
||||||
|
@ -4,12 +4,8 @@ import com.thebrokenrail.energonrelics.block.HolographicSkyBlock;
|
|||||||
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
||||||
import com.thebrokenrail.energonrelics.energy.core.EnergyReceiverBlockEntity;
|
import com.thebrokenrail.energonrelics.energy.core.EnergyReceiverBlockEntity;
|
||||||
import com.thebrokenrail.energonrelics.energy.core.util.Action;
|
import com.thebrokenrail.energonrelics.energy.core.util.Action;
|
||||||
import net.fabricmc.api.EnvType;
|
|
||||||
import net.fabricmc.api.Environment;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.block.entity.BlockEntityType;
|
import net.minecraft.block.entity.BlockEntityType;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.Direction;
|
|
||||||
import net.minecraft.world.LightType;
|
import net.minecraft.world.LightType;
|
||||||
|
|
||||||
public class HolographicSkyBlockEntity extends EnergyReceiverBlockEntity {
|
public class HolographicSkyBlockEntity extends EnergyReceiverBlockEntity {
|
||||||
|
@ -35,8 +35,8 @@ interface InfuserAction {
|
|||||||
Block.dropStack(world, pos, stack);
|
Block.dropStack(world, pos, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Environment(EnvType.CLIENT)
|
|
||||||
@Override
|
@Override
|
||||||
|
@Environment(EnvType.CLIENT)
|
||||||
public InfuserOutputItem display() {
|
public InfuserOutputItem display() {
|
||||||
return new InfuserOutputItem(true, stack);
|
return new InfuserOutputItem(true, stack);
|
||||||
}
|
}
|
||||||
@ -49,8 +49,8 @@ interface InfuserAction {
|
|||||||
world.createExplosion(null, pos.getX() + 0.5d, pos.getY() + 0.5d, pos.getZ() + 0.5d, 3f, true, Explosion.DestructionType.DESTROY);
|
world.createExplosion(null, pos.getX() + 0.5d, pos.getY() + 0.5d, pos.getZ() + 0.5d, 3f, true, Explosion.DestructionType.DESTROY);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Environment(EnvType.CLIENT)
|
|
||||||
@Override
|
@Override
|
||||||
|
@Environment(EnvType.CLIENT)
|
||||||
public InfuserOutputItem display() {
|
public InfuserOutputItem display() {
|
||||||
return new InfuserOutputItem(false, new ItemStack(Items.TNT));
|
return new InfuserOutputItem(false, new ItemStack(Items.TNT));
|
||||||
}
|
}
|
||||||
@ -62,8 +62,8 @@ interface InfuserAction {
|
|||||||
((ServerWorld) world).spawnParticles(ParticleTypes.SMOKE, pos.getX() + 0.5d, pos.getY() + 0.5d, pos.getZ() + 0.5d, 38, 0.31f, 0.31f, 0.31f, 0f);
|
((ServerWorld) world).spawnParticles(ParticleTypes.SMOKE, pos.getX() + 0.5d, pos.getY() + 0.5d, pos.getZ() + 0.5d, 38, 0.31f, 0.31f, 0.31f, 0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Environment(EnvType.CLIENT)
|
|
||||||
@Override
|
@Override
|
||||||
|
@Environment(EnvType.CLIENT)
|
||||||
public InfuserOutputItem display() {
|
public InfuserOutputItem display() {
|
||||||
return new InfuserOutputItem(false, new ItemStack(Items.FIRE_CHARGE));
|
return new InfuserOutputItem(false, new ItemStack(Items.FIRE_CHARGE));
|
||||||
}
|
}
|
||||||
|
@ -146,8 +146,8 @@ public class EnergyPortalBlock extends SimpleBlock {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Environment(EnvType.CLIENT)
|
|
||||||
@Override
|
@Override
|
||||||
|
@Environment(EnvType.CLIENT)
|
||||||
public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) {
|
public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) {
|
||||||
super.randomDisplayTick(state, world, pos, random);
|
super.randomDisplayTick(state, world, pos, random);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user