Package net.minecraft.block
Class TripwireHookBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.TripwireHookBlock
- All Implemented Interfaces:
ItemConvertible
- Mappings:
Namespace Name official chg
intermediary net/minecraft/class_2537
named net/minecraft/block/TripwireHookBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionstatic BooleanProperty
protected static VoxelShape
static DirectionProperty
protected static int
protected static int
protected static int
private static int
protected static VoxelShape
static BooleanProperty
protected static VoxelShape
protected static VoxelShape
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties(StateManager.Builder<Block,BlockState> builder)
boolean
canPlaceAt(BlockState state, WorldView world, BlockPos pos)
boolean
emitsRedstonePower(BlockState state)
getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
Gets the possibly updated block state of this block when a neighboring block is updated.int
getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
int
getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
mirror(BlockState state, BlockMirror mirror)
void
onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
.private void
rotate(BlockState state, BlockRotation rotation)
Applies a block rotation to a block state.void
scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
void
update(World world, BlockPos pos, BlockState state, boolean beingRemoved, boolean bool, int int2, @Nullable BlockState blockState)
private void
updateNeighborsOnAxis(World world, BlockPos pos, Direction direction)
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, hasComparatorOutput, hasSidedTransparency, isSideInvisible, method_37247, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official a
Lchg;a:Lclm;
intermediary field_11666
Lnet/minecraft/class_2537;field_11666:Lnet/minecraft/class_2753;
named FACING
Lnet/minecraft/block/TripwireHookBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
POWERED
- Mappings:
Namespace Name Mixin selector official b
Lchg;b:Lclj;
intermediary field_11671
Lnet/minecraft/class_2537;field_11671:Lnet/minecraft/class_2746;
named POWERED
Lnet/minecraft/block/TripwireHookBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
ATTACHED
- Mappings:
Namespace Name Mixin selector official c
Lchg;c:Lclj;
intermediary field_11669
Lnet/minecraft/class_2537;field_11669:Lnet/minecraft/class_2746;
named ATTACHED
Lnet/minecraft/block/TripwireHookBlock;ATTACHED:Lnet/minecraft/state/property/BooleanProperty;
-
field_31268
protected static final int field_31268- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lchg;d:I
intermediary field_31268
Lnet/minecraft/class_2537;field_31268:I
named field_31268
Lnet/minecraft/block/TripwireHookBlock;field_31268:I
-
field_31269
protected static final int field_31269- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lchg;e:I
intermediary field_31269
Lnet/minecraft/class_2537;field_31269:I
named field_31269
Lnet/minecraft/block/TripwireHookBlock;field_31269:I
-
field_31271
private static final int field_31271- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official k
Lchg;k:I
intermediary field_31271
Lnet/minecraft/class_2537;field_31271:I
named field_31271
Lnet/minecraft/block/TripwireHookBlock;field_31271:I
-
field_31270
protected static final int field_31270- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lchg;f:I
intermediary field_31270
Lnet/minecraft/class_2537;field_31270:I
named field_31270
Lnet/minecraft/block/TripwireHookBlock;field_31270:I
-
SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector official g
Lchg;g:Ldnt;
intermediary field_11665
Lnet/minecraft/class_2537;field_11665:Lnet/minecraft/class_265;
named SOUTH_SHAPE
Lnet/minecraft/block/TripwireHookBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector official h
Lchg;h:Ldnt;
intermediary field_11668
Lnet/minecraft/class_2537;field_11668:Lnet/minecraft/class_265;
named NORTH_SHAPE
Lnet/minecraft/block/TripwireHookBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EAST_SHAPE
- Mappings:
Namespace Name Mixin selector official i
Lchg;i:Ldnt;
intermediary field_11670
Lnet/minecraft/class_2537;field_11670:Lnet/minecraft/class_265;
named EAST_SHAPE
Lnet/minecraft/block/TripwireHookBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
WEST_SHAPE
- Mappings:
Namespace Name Mixin selector official j
Lchg;j:Ldnt;
intermediary field_11667
Lnet/minecraft/class_2537;field_11667:Lnet/minecraft/class_265;
named WEST_SHAPE
Lnet/minecraft/block/TripwireHookBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
TripwireHookBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lckr;<init>(Lckr$c;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lbvt;Lgg;Ldnf;)Ldnt;
intermediary method_9530
Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
named getOutlineShape
Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
canPlaceAt
- Overrides:
canPlaceAt
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lbws;Lgg;)Z
intermediary method_9558
Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
named canPlaceAt
Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.- Overrides:
getStateForNeighborUpdate
in classAbstractBlock
- Parameters:
state
- the state of this blockdirection
- the direction from this block to the neighborneighborState
- the state of the updated neighbor blockworld
- the worldpos
- the position of this blockneighborPos
- the position of the neighbor block- Returns:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lgl;Lcks;Lbwq;Lgg;Lgg;)Lcks;
intermediary method_9559
Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getStateForNeighborUpdate
Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbzo;a(Lbsp;)Lcks;
intermediary method_9605
Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
named getPlacementState
Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)- Overrides:
onPlaced
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbzo;a(Lbwp;Lgg;Lcks;Latt;Lbqp;)V
intermediary method_9567
Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
named onPlaced
Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
update
public void update(World world, BlockPos pos, BlockState state, boolean beingRemoved, boolean bool, int int2, @Nullable @Nullable BlockState blockState)- Mappings:
Namespace Name Mixin selector official a
Lchg;a(Lbwp;Lgg;Lcks;ZZILcks;)V
intermediary method_10776
Lnet/minecraft/class_2537;method_10776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;ZZILnet/minecraft/class_2680;)V
named update
Lnet/minecraft/block/TripwireHookBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;ZZILnet/minecraft/block/BlockState;)V
-
scheduledTick
- Overrides:
scheduledTick
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Labr;Lgg;Ljava/util/Random;)V
intermediary method_9588
Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named scheduledTick
Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
playSound
private void playSound(World world, BlockPos pos, boolean attached, boolean on, boolean detached, boolean off)- Mappings:
Namespace Name Mixin selector official a
Lchg;a(Lbwp;Lgg;ZZZZ)V
intermediary method_10777
Lnet/minecraft/class_2537;method_10777(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ZZZZ)V
named playSound
Lnet/minecraft/block/TripwireHookBlock;playSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ZZZZ)V
-
updateNeighborsOnAxis
- Mappings:
Namespace Name Mixin selector official a
Lchg;a(Lbwp;Lgg;Lgl;)V
intermediary method_10775
Lnet/minecraft/class_2537;method_10775(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)V
named updateNeighborsOnAxis
Lnet/minecraft/block/TripwireHookBlock;updateNeighborsOnAxis(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplaced
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lbwp;Lgg;Lcks;Z)V
intermediary method_9536
Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onStateReplaced
Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)- Overrides:
getWeakRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lbvt;Lgg;Lgl;)I
intermediary method_9524
Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getWeakRedstonePower
Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getStrongRedstonePower
public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)- Overrides:
getStrongRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lckr;b(Lcks;Lbvt;Lgg;Lgl;)I
intermediary method_9603
Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getStrongRedstonePower
Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
emitsRedstonePower
- Overrides:
emitsRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official f_
Lckr;f_(Lcks;)Z
intermediary method_9506
Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
named emitsRedstonePower
Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lcfk;)Lcks;
intermediary method_9598
Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
named rotate
Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
mirror
- Overrides:
mirror
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lckr;a(Lcks;Lcdx;)Lcks;
intermediary method_9569
Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
named mirror
Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbzo;a(Lckt$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-