public class UmbrellaBlock extends BlockGenericModelMultiblock
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
FACING, height, jsonOffset, length, MULTIPOS, width
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Constructor and Description |
---|
UmbrellaBlock() |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.shapes.VoxelShape |
getCollisionShape(net.minecraft.block.BlockState p_220071_1_,
net.minecraft.world.IBlockReader p_220071_2_,
net.minecraft.util.math.BlockPos p_220071_3_,
net.minecraft.util.math.shapes.ISelectionContext p_220071_4_) |
protected net.minecraft.util.math.AxisAlignedBB |
getMultiBlockBoundingBox(net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
MultiBlockPosition multiPos,
net.minecraft.util.Direction facing)
Gets the bounding box for the multi-block.
|
net.minecraft.block.BlockRenderType |
getRenderShape(net.minecraft.block.BlockState p_149645_1_) |
protected java.util.Optional<net.minecraft.tileentity.TileEntity> |
getTileEntity(net.minecraft.world.IBlockReader world,
net.minecraft.block.BlockState state)
Gets the tile entity associated with the multi-block.
|
createBlockStateDefinition, createTileEntity, findBaseBlock, getDrops, getHeight, getJsonOffset, getLength, getLightValue, getShape, getWidth, newBlockEntity, onRemove, removedByPlayer, rotate
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, getStateForPlacement, 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, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, use, 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, 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, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
protected java.util.Optional<net.minecraft.tileentity.TileEntity> getTileEntity(net.minecraft.world.IBlockReader world, net.minecraft.block.BlockState state)
MultiBlock
getTileEntity
in class MultiBlock
world
- The world the multi-block is in.state
- The multi-block to get a tile entity for.public net.minecraft.block.BlockRenderType getRenderShape(net.minecraft.block.BlockState p_149645_1_)
getRenderShape
in class net.minecraft.block.ContainerBlock
public net.minecraft.util.math.shapes.VoxelShape getCollisionShape(net.minecraft.block.BlockState p_220071_1_, net.minecraft.world.IBlockReader p_220071_2_, net.minecraft.util.math.BlockPos p_220071_3_, net.minecraft.util.math.shapes.ISelectionContext p_220071_4_)
getCollisionShape
in class net.minecraft.block.AbstractBlock
protected net.minecraft.util.math.AxisAlignedBB getMultiBlockBoundingBox(net.minecraft.world.IBlockReader worldIn, net.minecraft.util.math.BlockPos pos, MultiBlockPosition multiPos, net.minecraft.util.Direction facing)
MultiBlock
getMultiBlockBoundingBox
in class MultiBlock
worldIn
- The world that the multi-block is in.pos
- The position of the block to get a bounding box for.multiPos
- The position of the block relative to the base of the multi-blockfacing
- The direction that the multi-block is facing.