public class CampfireBlock extends BlockWithEntity implements Waterloggable
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static DirectionProperty |
FACING |
private static VoxelShape |
field_21580 |
private boolean |
field_23881 |
static BooleanProperty |
LIT |
protected static VoxelShape |
SHAPE |
static BooleanProperty |
SIGNAL_FIRE |
static BooleanProperty |
WATERLOGGED |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
CampfireBlock(boolean bool,
AbstractBlock.Settings settings) |
createScreenHandlerFactory, onBlockActionaddStacksForDisplay, afterBreak, asBlock, asItem, buildTooltip, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRayTraceShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onStacksDropped, prepare, randomTick, scheduledTickclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanFillWithFluid, tryDrainFluidprotected 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
private static final VoxelShape field_21580
private final boolean field_23881
public CampfireBlock(boolean bool,
AbstractBlock.Settings settings)
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
onUse in class AbstractBlockpublic void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
onEntityCollision in class AbstractBlockpublic void onBlockRemoved(BlockState state, World world, BlockPos pos, BlockState newState, boolean notify)
onBlockRemoved in class AbstractBlock@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class Blockpublic BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, IWorld world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class AbstractBlockprivate boolean doesBlockCauseSignalFire(BlockState state)
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockpublic BlockRenderType getRenderType(BlockState state)
getRenderType in class BlockWithEntity@Environment(value=CLIENT) public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
randomDisplayTick in class Blockpublic boolean tryFillWithFluid(IWorld world, BlockPos pos, BlockState state, FluidState fluidState)
tryFillWithFluid in interface FluidFillabletryFillWithFluid in interface Waterloggablepublic void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)
onProjectileHit in class AbstractBlockpublic static void spawnSmokeParticle(World world, BlockPos pos, boolean isSignal, boolean lotsOfSmoke)
public static boolean isLitCampfireInRange(World world, BlockPos pos, int range)
public static boolean isLitCampfire(BlockState state)
public FluidState getFluidState(BlockState state)
getFluidState in class AbstractBlockpublic BlockState rotate(BlockState state, BlockRotation rotation)
rotate in class AbstractBlockpublic BlockState mirror(BlockState state, BlockMirror mirror)
mirror in class AbstractBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic BlockEntity createBlockEntity(BlockView world)
createBlockEntity in interface BlockEntityProviderpublic boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough in class AbstractBlock