public class TripWireBlock extends Block
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
protected static VoxelShape |
AABB |
static BooleanProperty |
ATTACHED |
static BooleanProperty |
DISARMED |
static BooleanProperty |
EAST |
private TripWireHookBlock |
hook |
static BooleanProperty |
NORTH |
protected static VoxelShape |
NOT_ATTACHED_AABB |
static BooleanProperty |
POWERED |
private static java.util.Map<Direction,BooleanProperty> |
PROPERTY_BY_DIRECTION |
static BooleanProperty |
SOUTH |
static BooleanProperty |
WEST |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
TripWireBlock(TripWireHookBlock p_i48305_1_,
AbstractBlock.Properties p_i48305_2_) |
Modifier and Type | Method and Description |
---|---|
private void |
checkPressed(World p_176288_1_,
BlockPos p_176288_2_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
void |
entityInside(BlockState p_196262_1_,
World p_196262_2_,
BlockPos p_196262_3_,
Entity p_196262_4_) |
VoxelShape |
getShape(BlockState p_220053_1_,
IBlockReader p_220053_2_,
BlockPos p_220053_3_,
ISelectionContext p_220053_4_) |
BlockState |
getStateForPlacement(BlockItemUseContext p_196258_1_) |
BlockState |
mirror(BlockState p_185471_1_,
Mirror p_185471_2_) |
void |
onPlace(BlockState p_220082_1_,
World p_220082_2_,
BlockPos p_220082_3_,
BlockState p_220082_4_,
boolean p_220082_5_) |
void |
onRemove(BlockState p_196243_1_,
World p_196243_2_,
BlockPos p_196243_3_,
BlockState p_196243_4_,
boolean p_196243_5_) |
void |
playerWillDestroy(World p_176208_1_,
BlockPos p_176208_2_,
BlockState p_176208_3_,
PlayerEntity p_176208_4_) |
BlockState |
rotate(BlockState p_185499_1_,
Rotation p_185499_2_) |
boolean |
shouldConnectTo(BlockState p_196536_1_,
Direction p_196536_2_) |
void |
tick(BlockState p_225534_1_,
ServerWorld p_225534_2_,
BlockPos p_225534_3_,
java.util.Random p_225534_4_) |
BlockState |
updateShape(BlockState p_196271_1_,
Direction p_196271_2_,
BlockState p_196271_3_,
IWorld p_196271_4_,
BlockPos p_196271_5_,
BlockPos p_196271_6_) |
private void |
updateSource(World p_176286_1_,
BlockPos p_176286_2_,
BlockState p_176286_3_) |
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, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, neighborChanged, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, 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, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, 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, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final BooleanProperty POWERED
public static final BooleanProperty ATTACHED
public static final BooleanProperty DISARMED
public static final BooleanProperty NORTH
public static final BooleanProperty EAST
public static final BooleanProperty SOUTH
public static final BooleanProperty WEST
private static final java.util.Map<Direction,BooleanProperty> PROPERTY_BY_DIRECTION
protected static final VoxelShape AABB
protected static final VoxelShape NOT_ATTACHED_AABB
private final TripWireHookBlock hook
public TripWireBlock(TripWireHookBlock p_i48305_1_, AbstractBlock.Properties p_i48305_2_)
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
getShape
in class AbstractBlock
public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
getStateForPlacement
in class Block
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)
updateShape
in class AbstractBlock
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_)
onPlace
in class AbstractBlock
public void onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_)
onRemove
in class AbstractBlock
public void playerWillDestroy(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_)
playerWillDestroy
in class Block
private void updateSource(World p_176286_1_, BlockPos p_176286_2_, BlockState p_176286_3_)
public void entityInside(BlockState p_196262_1_, World p_196262_2_, BlockPos p_196262_3_, Entity p_196262_4_)
entityInside
in class AbstractBlock
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, java.util.Random p_225534_4_)
tick
in class AbstractBlock
public boolean shouldConnectTo(BlockState p_196536_1_, Direction p_196536_2_)
public BlockState rotate(BlockState p_185499_1_, Rotation p_185499_2_)
rotate
in class AbstractBlock
public BlockState mirror(BlockState p_185471_1_, Mirror p_185471_2_)
mirror
in class AbstractBlock
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block