public class ColossalChest extends org.cyclops.cyclopscore.block.BlockTileGui implements org.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener, IBlockChestMaterial
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.state.BooleanProperty |
ENABLED |
| Constructor and Description |
|---|
ColossalChest(net.minecraft.block.Block.Properties properties,
ChestMaterial material) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPlayerChatError(ChestMaterial material,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
Show the structure forming error in the given player chat window.
|
static void |
addPlayerChatError(net.minecraft.entity.player.PlayerEntity player,
org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString unlocalizedError) |
boolean |
canCreatureSpawn(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.EntitySpawnPlacementRegistry.PlacementType type,
net.minecraft.entity.EntityType<?> entityType) |
static boolean |
canPlace(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos) |
protected void |
fillStateContainer(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
static net.minecraft.util.math.BlockPos |
getCoreLocation(ChestMaterial material,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos blockPos)
Get the core block location.
|
float |
getExplosionResistance(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity exploder,
net.minecraft.world.Explosion explosion) |
ChestMaterial |
getMaterial() |
net.minecraft.util.BlockRenderLayer |
getRenderLayer() |
java.lang.String |
getTranslationKey() |
boolean |
isToolEffective(net.minecraft.block.BlockState state,
net.minecraftforge.common.ToolType tool) |
static boolean |
isToolEffectiveShared(ChestMaterial material,
net.minecraft.block.BlockState state,
net.minecraftforge.common.ToolType tool) |
boolean |
isValidPosition(net.minecraft.block.BlockState blockState,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos blockPos) |
boolean |
onBlockActivated(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult rayTraceResult) |
void |
onBlockAdded(net.minecraft.block.BlockState blockStateNew,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.BlockState blockStateOld,
boolean isMoving) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.LivingEntity placer,
net.minecraft.item.ItemStack stack) |
void |
onDetect(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner) |
void |
onExplosionDestroy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.world.Explosion explosion) |
void |
onPlayerDestroy(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.BlockState blockState) |
static org.cyclops.cyclopscore.block.multi.DetectionResult |
triggerDetector(ChestMaterial material,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos blockPos,
boolean valid,
net.minecraft.entity.player.PlayerEntity player) |
void |
writeExtraGuiData(net.minecraft.network.PacketBuffer packetBuffer,
net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult rayTraceResult) |
createNewTileEntity, getDroppedItemStack, getDroppedItemStackNbt, getDrops, getPickBlock, getRenderType, isPersistNbt, onBlockHarvestedaddInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, func_220055_a, func_220064_c, func_220074_n, func_220080_a, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getShape, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isVariableOpacity, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockClicked, onEntityCollision, onEntityWalk, onFallenUpon, onLanded, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacementgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOpenStat, onBlockActivatedHookaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, collisionExtendsVertically, createTileEntity, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isReplaceableOreGen, isStickyBlock, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPowerpublic ColossalChest(net.minecraft.block.Block.Properties properties,
ChestMaterial material)
public java.lang.String getTranslationKey()
getTranslationKey in class net.minecraft.block.Blockpublic ChestMaterial getMaterial()
getMaterial in interface IBlockChestMaterialprotected void fillStateContainer(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
fillStateContainer in class net.minecraft.block.Blockpublic static boolean isToolEffectiveShared(ChestMaterial material, net.minecraft.block.BlockState state, net.minecraftforge.common.ToolType tool)
public static boolean canPlace(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos)
public boolean isToolEffective(net.minecraft.block.BlockState state,
net.minecraftforge.common.ToolType tool)
isToolEffective in interface net.minecraftforge.common.extensions.IForgeBlockpublic net.minecraft.util.BlockRenderLayer getRenderLayer()
getRenderLayer in class net.minecraft.block.Blockpublic boolean canCreatureSpawn(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.EntitySpawnPlacementRegistry.PlacementType type,
@Nullable
net.minecraft.entity.EntityType<?> entityType)
canCreatureSpawn in interface net.minecraftforge.common.extensions.IForgeBlockpublic static org.cyclops.cyclopscore.block.multi.DetectionResult triggerDetector(ChestMaterial material, net.minecraft.world.IWorld world, net.minecraft.util.math.BlockPos blockPos, boolean valid, @Nullable net.minecraft.entity.player.PlayerEntity player)
public void onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.LivingEntity placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class net.minecraft.block.Blockpublic void onBlockAdded(net.minecraft.block.BlockState blockStateNew,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.BlockState blockStateOld,
boolean isMoving)
onBlockAdded in class net.minecraft.block.Blockpublic void onDetect(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
onDetect in interface org.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener@Nullable public static net.minecraft.util.math.BlockPos getCoreLocation(ChestMaterial material, net.minecraft.world.IWorldReader world, net.minecraft.util.math.BlockPos blockPos)
material - The chest material.world - The world.blockPos - The start position to search from.public static void addPlayerChatError(ChestMaterial material, net.minecraft.world.World world, net.minecraft.util.math.BlockPos blockPos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
material - The chest material.world - The world.blockPos - The start position.player - The player.hand - The used hand.public static void addPlayerChatError(net.minecraft.entity.player.PlayerEntity player,
org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString unlocalizedError)
public void writeExtraGuiData(net.minecraft.network.PacketBuffer packetBuffer,
net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult rayTraceResult)
writeExtraGuiData in interface org.cyclops.cyclopscore.block.IBlockGuipublic boolean onBlockActivated(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult rayTraceResult)
onBlockActivated in class org.cyclops.cyclopscore.block.BlockTileGuipublic void onPlayerDestroy(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.BlockState blockState)
onPlayerDestroy in class net.minecraft.block.Blockpublic void onExplosionDestroy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.world.Explosion explosion)
onExplosionDestroy in class net.minecraft.block.Blockpublic float getExplosionResistance(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.entity.Entity exploder,
net.minecraft.world.Explosion explosion)
getExplosionResistance in interface net.minecraftforge.common.extensions.IForgeBlockpublic boolean isValidPosition(net.minecraft.block.BlockState blockState,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos blockPos)
isValidPosition in class net.minecraft.block.Block