net.minecraft.block

public class TripwireHookBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.TripWireHookBlock
net.minecraft.class_2537
net.minecraft.block.TripwireHookBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TripwireHookBlock>
CODEC
field_46481
CODEC
public static final EnumProperty<Direction>
FACING
field_11666
FACING
public static final BooleanProperty
POWERED
field_11671
POWERED
public static final BooleanProperty
ATTACHED
field_11669
ATTACHED
protected static final int
WIRE_DIST_MIN
field_31268
field_31268
protected static final int
WIRE_DIST_MAX
field_31269
field_31269
private static final int
RECHECK_PERIOD
field_31271
SCHEDULED_TICK_DELAY
private static final Map<Direction, VoxelShape>
SHAPES
field_55808
SHAPES_BY_DIRECTION

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TripwireHookBlock>
codec()
method_53969()
getCodec()
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public void
setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity by, ItemStack itemStack)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
public static void
calculateState(Level level, BlockPos pos, BlockState state, boolean isBeingDestroyed, boolean canUpdate, int wireSource, BlockState wireSourceState)
method_10776(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3, boolean arg4, int arg5, class_2680 arg6)
update(World world, BlockPos pos, BlockState state, boolean arg3, boolean arg4, int arg5, BlockState arg6)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
private static void
emitState(Level level, BlockPos pos, boolean attached, boolean powered, boolean wasAttached, boolean wasPowered)
method_10777(class_1937 arg0, class_2338 arg1, boolean arg2, boolean arg3, boolean arg4, boolean arg5)
playSound(World world, BlockPos pos, boolean attached, boolean on, boolean detached, boolean off)
private static void
notifyNeighbors(Block block, Level level, BlockPos pos, Direction direction)
method_10775(class_2248 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
updateNeighborsOnAxis(Block block, World world, BlockPos pos, Direction direction)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
private static void
onRemoved(BlockState state, Level level, BlockPos pos)
method_1_3130(class_2680 arg0, class_1937 arg1, class_2338 arg2)
update(BlockState state, World world, BlockPos pos)
protected int
ownSignal(BlockState state, BlockGetter level, BlockPos pos)
method_1_5240(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2)
protected int
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected boolean
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected BlockState
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)