public class FridgeBlock
extends net.minecraft.block.ContainerBlock
net.minecraft.block.Block.RenderSideCacheKey
net.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 |
---|---|
static net.minecraft.state.DirectionProperty |
FACING |
static net.minecraft.state.BooleanProperty |
OPEN |
static net.minecraft.util.math.shapes.VoxelShape |
SHAPE |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Constructor and Description |
---|
FridgeBlock() |
Modifier and Type | Method and Description |
---|---|
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
int |
getLightBlock(net.minecraft.block.BlockState p_200011_1_,
net.minecraft.world.IBlockReader p_200011_2_,
net.minecraft.util.math.BlockPos p_200011_3_) |
int |
getLightValue(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.BlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.block.BlockRenderType |
getRenderShape(net.minecraft.block.BlockState p_149645_1_) |
float |
getShadeBrightness(net.minecraft.block.BlockState p_220080_1_,
net.minecraft.world.IBlockReader p_220080_2_,
net.minecraft.util.math.BlockPos p_220080_3_) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState p_220053_1_,
net.minecraft.world.IBlockReader p_220053_2_,
net.minecraft.util.math.BlockPos p_220053_3_,
net.minecraft.util.math.shapes.ISelectionContext p_220053_4_) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
net.minecraft.block.BlockState |
mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror direction) |
net.minecraft.tileentity.TileEntity |
newBlockEntity(net.minecraft.world.IBlockReader p_196283_1_) |
void |
onRemove(net.minecraft.block.BlockState newState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState oldState,
boolean p_196243_5_) |
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState state,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Rotation direction) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.PlayerEntity playerEntity,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult rayTraceResult) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, neighborChanged, onPlace, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final net.minecraft.state.BooleanProperty OPEN
public static final net.minecraft.state.DirectionProperty FACING
public static final net.minecraft.util.math.shapes.VoxelShape SHAPE
public net.minecraft.util.ActionResultType use(net.minecraft.block.BlockState blockState, net.minecraft.world.World world, net.minecraft.util.math.BlockPos blockPos, net.minecraft.entity.player.PlayerEntity playerEntity, net.minecraft.util.Hand hand, net.minecraft.util.math.BlockRayTraceResult rayTraceResult)
use
in class net.minecraft.block.AbstractBlock
protected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition
in class net.minecraft.block.Block
public boolean hasTileEntity(net.minecraft.block.BlockState state)
public float getShadeBrightness(net.minecraft.block.BlockState p_220080_1_, net.minecraft.world.IBlockReader p_220080_2_, net.minecraft.util.math.BlockPos p_220080_3_)
getShadeBrightness
in class net.minecraft.block.AbstractBlock
@Nullable public net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world)
public net.minecraft.block.BlockRenderType getRenderShape(net.minecraft.block.BlockState p_149645_1_)
getRenderShape
in class net.minecraft.block.ContainerBlock
public net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.BlockState state, net.minecraft.util.math.RayTraceResult target, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player)
public void onRemove(net.minecraft.block.BlockState newState, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState oldState, boolean p_196243_5_)
onRemove
in class net.minecraft.block.AbstractBlock
@Nullable public net.minecraft.tileentity.TileEntity newBlockEntity(net.minecraft.world.IBlockReader p_196283_1_)
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState p_220053_1_, net.minecraft.world.IBlockReader p_220053_2_, net.minecraft.util.math.BlockPos p_220053_3_, net.minecraft.util.math.shapes.ISelectionContext p_220053_4_)
getShape
in class net.minecraft.block.AbstractBlock
@Nullable public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement
in class net.minecraft.block.Block
public int getLightBlock(net.minecraft.block.BlockState p_200011_1_, net.minecraft.world.IBlockReader p_200011_2_, net.minecraft.util.math.BlockPos p_200011_3_)
getLightBlock
in class net.minecraft.block.AbstractBlock
public int getLightValue(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
public net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state, net.minecraft.world.IWorld world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Rotation direction)
public net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state, net.minecraft.util.Mirror direction)
mirror
in class net.minecraft.block.AbstractBlock