net.minecraft.block

public class TripwireBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.TripWireBlock
net.minecraft.class_2538
net.minecraft.block.TripwireBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TripwireBlock>
CODEC
field_46480
CODEC
public static final BooleanProperty
POWERED
field_11680
POWERED
public static final BooleanProperty
ATTACHED
field_11683
ATTACHED
public static final BooleanProperty
DISARMED
field_11679
DISARMED
public static final BooleanProperty
NORTH
field_11675
NORTH
public static final BooleanProperty
EAST
field_11673
EAST
public static final BooleanProperty
SOUTH
field_11678
SOUTH
public static final BooleanProperty
WEST
field_11674
WEST
private static final Map<Direction, BooleanProperty>
PROPERTY_BY_DIRECTION
field_11676
FACING_PROPERTIES
private static final VoxelShape
SHAPE_ATTACHED
field_55806
ATTACHED_SHAPE
private static final VoxelShape
SHAPE_NOT_ATTACHED
field_55807
UNATTACHED_SHAPE
private static final int
RECHECK_PERIOD
field_31267
SCHEDULED_TICK_DELAY
private final Block
hook
field_11677
hookBlock

Constructor summary

ModifierConstructor
public (Block hookBlock, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TripwireBlock>
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)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
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)
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
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)
public BlockState
playerWillDestroy(Level level, BlockPos pos, BlockState state, Player player)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
private void
updateSource(Level level, BlockPos pos, BlockState state)
method_10779(class_1937 arg0, class_2338 arg1, class_2680 arg2)
update(World world, BlockPos pos, BlockState state)
protected VoxelShape
getEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity)
method_64022(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_1297 arg3)
getInsideCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, Entity arg3)
protected void
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3, class_10774 arg4, boolean arg5)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3, EntityCollisionHandler arg4, boolean arg5)
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 void
checkPressed(Level level, BlockPos pos)
method_64024(class_1937 arg0, class_2338 arg1)
updatePowered(World world, BlockPos pos)
private void
checkPressed(Level level, BlockPos pos, List<? extends Entity> entities)
method_10780(class_1937 arg0, class_2338 arg1, List<? extends class_1297> arg2)
updatePowered(World world, BlockPos pos, List<? extends Entity> entities)
public boolean
shouldConnectTo(BlockState blockState, Direction direction)
method_10778(class_2680 arg0, class_2350 arg1)
shouldConnectTo(BlockState state, Direction facing)
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)
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_54060(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_54060(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)
private static Block
lambda$static$1(TripWireBlock arg0)
method_54061(class_2538 arg0)
method_54061(TripwireBlock block)