public class MysteryBoxBlock
extends net.minecraft.block.ContainerBlock
implements net.minecraft.block.IWaterLoggable
net.minecraft.block.Block.RenderSideCacheKeynet.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties| Modifier and Type | Field and Description |
|---|---|
protected static net.minecraft.util.math.shapes.VoxelShape |
AABB |
static net.minecraft.state.DirectionProperty |
FACING |
static net.minecraft.state.BooleanProperty |
WATERLOGGED |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
MysteryBoxBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
int |
getAnalogOutputSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.item.ItemStack |
getCloneItemStack(net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
java.util.List<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.block.BlockState state,
net.minecraft.loot.LootContext.Builder builder) |
net.minecraft.fluid.FluidState |
getFluidState(net.minecraft.block.BlockState state) |
net.minecraft.block.BlockRenderType |
getRenderShape(net.minecraft.block.BlockState state) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
boolean |
hasAnalogOutputSignal(net.minecraft.block.BlockState state) |
boolean |
isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType pathType) |
net.minecraft.block.BlockState |
mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirror) |
void |
neighborChanged(net.minecraft.block.BlockState p_220069_1_,
net.minecraft.world.World p_220069_2_,
net.minecraft.util.math.BlockPos p_220069_3_,
net.minecraft.block.Block p_220069_4_,
net.minecraft.util.math.BlockPos p_220069_5_,
boolean p_220069_6_) |
net.minecraft.tileentity.TileEntity |
newBlockEntity(net.minecraft.world.IBlockReader blockReader) |
void |
onRemove(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean unused) |
void |
playerWillDestroy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation) |
net.minecraft.block.BlockState |
updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction direction,
net.minecraft.block.BlockState newState,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos newPos) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult hit) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExplodedattack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getSignal, getVisualShape, isAir, isEntityBlock, isSignalSource, onPlace, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanPlaceLiquid, placeLiquid, takeLiquidaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final net.minecraft.state.DirectionProperty FACING
public static final net.minecraft.state.BooleanProperty WATERLOGGED
protected static final net.minecraft.util.math.shapes.VoxelShape AABB
public MysteryBoxBlock(net.minecraft.block.AbstractBlock.Properties properties)
public net.minecraft.block.BlockRenderType getRenderShape(net.minecraft.block.BlockState state)
getRenderShape in class net.minecraft.block.ContainerBlockpublic net.minecraft.block.BlockState updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction direction,
net.minecraft.block.BlockState newState,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos newPos)
updateShape in class net.minecraft.block.AbstractBlockpublic net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context)
getShape in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class net.minecraft.block.Blockpublic net.minecraft.fluid.FluidState getFluidState(net.minecraft.block.BlockState state)
getFluidState in class net.minecraft.block.AbstractBlockpublic void onRemove(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean unused)
onRemove in class net.minecraft.block.AbstractBlockpublic net.minecraft.util.ActionResultType use(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult hit)
use in class net.minecraft.block.AbstractBlockpublic net.minecraft.tileentity.TileEntity newBlockEntity(net.minecraft.world.IBlockReader blockReader)
newBlockEntity in interface net.minecraft.block.ITileEntityProviderpublic boolean hasAnalogOutputSignal(net.minecraft.block.BlockState state)
hasAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic int getAnalogOutputSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation)
rotate in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirror)
mirror in class net.minecraft.block.AbstractBlockprotected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class net.minecraft.block.Blockpublic void playerWillDestroy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.player.PlayerEntity player)
playerWillDestroy in class net.minecraft.block.Blockpublic java.util.List<net.minecraft.item.ItemStack> getDrops(net.minecraft.block.BlockState state,
net.minecraft.loot.LootContext.Builder builder)
getDrops in class net.minecraft.block.AbstractBlockpublic net.minecraft.item.ItemStack getCloneItemStack(net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state)
getCloneItemStack in class net.minecraft.block.Blockpublic boolean isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType pathType)
isPathfindable in class net.minecraft.block.AbstractBlockpublic void neighborChanged(net.minecraft.block.BlockState p_220069_1_,
net.minecraft.world.World p_220069_2_,
net.minecraft.util.math.BlockPos p_220069_3_,
net.minecraft.block.Block p_220069_4_,
net.minecraft.util.math.BlockPos p_220069_5_,
boolean p_220069_6_)
neighborChanged in class net.minecraft.block.AbstractBlock