public class CampfireBlock extends ContainerBlock implements IWaterLoggable
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static DirectionProperty |
FACING |
static BooleanProperty |
LIT |
protected static VoxelShape |
SHAPE |
static BooleanProperty |
SIGNAL_FIRE |
static BooleanProperty |
WATERLOGGED |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Constructor and Description |
---|
CampfireBlock(Block.Properties p_i49989_1_) |
eventReceived, getContainer
addInformation, 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, getDrops, getExplosionResistance, getHarvestLevel, getHarvestTool, getItem, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canContainFluid, pickupFluid
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, catchFire, collisionExtendsVertically, createTileEntity, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
protected static final VoxelShape SHAPE
public static final BooleanProperty LIT
public static final BooleanProperty SIGNAL_FIRE
public static final BooleanProperty WATERLOGGED
public static final DirectionProperty FACING
public CampfireBlock(Block.Properties p_i49989_1_)
public boolean onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
in class Block
public void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision
in class Block
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
in class Block
@Nullable public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
in class Block
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
in class Block
public int getLightValue(BlockState state)
getLightValue
in class Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public BlockRenderType getRenderType(BlockState state)
getRenderType
in class ContainerBlock
public BlockRenderLayer getRenderLayer()
getRenderLayer
in class Block
public void animateTick(BlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick
in class Block
public boolean receiveFluid(IWorld worldIn, BlockPos pos, BlockState state, IFluidState fluidStateIn)
receiveFluid
in interface ILiquidContainer
receiveFluid
in interface IWaterLoggable
public void onProjectileCollision(World worldIn, BlockState state, BlockRayTraceResult hit, Entity projectile)
onProjectileCollision
in class Block
public static void func_220098_a(World p_220098_0_, BlockPos pos, boolean p_220098_2_, boolean p_220098_3_)
public IFluidState getFluidState(BlockState state)
getFluidState
in class Block
public BlockState rotate(BlockState state, Rotation rot)
public BlockState mirror(BlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block
public TileEntity createNewTileEntity(IBlockReader worldIn)
createNewTileEntity
in interface ITileEntityProvider
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
in class Block