public class class_5545 extends class_5540
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static BooleanProperty |
field_27183 |
protected static VoxelShape |
field_27184 |
protected static VoxelShape |
field_27185 |
protected static VoxelShape |
field_27186 |
private static Map<Block,class_5545> |
field_27187 |
private static Iterable<Vec3d> |
field_27188 |
field_27083LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
class_5545(Block block,
AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendProperties(StateManager.Builder<Block,BlockState> builder) |
boolean |
canPathfindThrough(BlockState blockState,
BlockView blockView,
BlockPos blockPos,
NavigationType navigationType) |
boolean |
canPlaceAt(BlockState blockState,
WorldView worldView,
BlockPos blockPos) |
int |
getComparatorOutput(BlockState blockState,
World world,
BlockPos blockPos) |
VoxelShape |
getOutlineShape(BlockState blockState,
BlockView blockView,
BlockPos blockPos,
ShapeContext shapeContext) |
ItemStack |
getPickStack(BlockView blockView,
BlockPos blockPos,
BlockState blockState) |
BlockState |
getStateForNeighborUpdate(BlockState blockState,
Direction direction,
BlockState blockState2,
WorldAccess worldAccess,
BlockPos blockPos,
BlockPos blockPos2) |
boolean |
hasComparatorOutput(BlockState blockState) |
protected Iterable<Vec3d> |
method_31613(BlockState blockState) |
static BlockState |
method_31632(Block block) |
private static boolean |
method_31634(BlockHitResult blockHitResult) |
static boolean |
method_31635(BlockState blockState) |
ActionResult |
onUse(BlockState blockState,
World world,
BlockPos blockPos,
PlayerEntity playerEntity,
Hand hand,
BlockHitResult blockHitResult)
Called when this block is used by a player.
|
method_31614, onProjectileHit, randomDisplayTickaddStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickpublic static final BooleanProperty field_27183
protected static final VoxelShape field_27184
protected static final VoxelShape field_27185
protected static final VoxelShape field_27186
private static final Map<Block,class_5545> field_27187
protected class_5545(Block block, AbstractBlock.Settings settings)
@Environment(value=CLIENT) protected Iterable<Vec3d> method_31613(BlockState blockState)
method_31613 in class class_5540public VoxelShape getOutlineShape(BlockState blockState, BlockView blockView, BlockPos blockPos, ShapeContext shapeContext)
getOutlineShape in class AbstractBlockpublic ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, Hand hand, BlockHitResult blockHitResult)
AbstractBlockThis method is called on both the logical client and logical server, so take caution when overriding this method.
The logical side can be checked using world.isClient().
If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
onUse in class AbstractBlockprivate static boolean method_31634(BlockHitResult blockHitResult)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Block@Environment(value=CLIENT) public ItemStack getPickStack(BlockView blockView, BlockPos blockPos, BlockState blockState)
getPickStack in class Blockpublic BlockState getStateForNeighborUpdate(BlockState blockState, Direction direction, BlockState blockState2, WorldAccess worldAccess, BlockPos blockPos, BlockPos blockPos2)
getStateForNeighborUpdate in class AbstractBlockpublic boolean canPlaceAt(BlockState blockState, WorldView worldView, BlockPos blockPos)
canPlaceAt in class AbstractBlockpublic int getComparatorOutput(BlockState blockState, World world, BlockPos blockPos)
getComparatorOutput in class AbstractBlockpublic boolean hasComparatorOutput(BlockState blockState)
hasComparatorOutput in class AbstractBlockpublic boolean canPathfindThrough(BlockState blockState, BlockView blockView, BlockPos blockPos, NavigationType navigationType)
canPathfindThrough in class AbstractBlockpublic static BlockState method_31632(Block block)
public static boolean method_31635(BlockState blockState)