Class TripwireBlock

All Implemented Interfaces:
ItemConvertible

public class TripwireBlock extends Block
Mappings:
Namespace Name
official ckp
intermediary net/minecraft/class_2538
named net/minecraft/block/TripwireBlock
  • Field Details

    • POWERED

      public static final BooleanProperty POWERED
      Mappings:
      Namespace Name Mixin selector
      official a Lckp;a:Lcou;
      intermediary field_11680 Lnet/minecraft/class_2538;field_11680:Lnet/minecraft/class_2746;
      named POWERED Lnet/minecraft/block/TripwireBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
    • ATTACHED

      public static final BooleanProperty ATTACHED
      Mappings:
      Namespace Name Mixin selector
      official b Lckp;b:Lcou;
      intermediary field_11683 Lnet/minecraft/class_2538;field_11683:Lnet/minecraft/class_2746;
      named ATTACHED Lnet/minecraft/block/TripwireBlock;ATTACHED:Lnet/minecraft/state/property/BooleanProperty;
    • DISARMED

      public static final BooleanProperty DISARMED
      Mappings:
      Namespace Name Mixin selector
      official c Lckp;c:Lcou;
      intermediary field_11679 Lnet/minecraft/class_2538;field_11679:Lnet/minecraft/class_2746;
      named DISARMED Lnet/minecraft/block/TripwireBlock;DISARMED:Lnet/minecraft/state/property/BooleanProperty;
    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official d Lckp;d:Lcou;
      intermediary field_11675 Lnet/minecraft/class_2538;field_11675:Lnet/minecraft/class_2746;
      named NORTH Lnet/minecraft/block/TripwireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
    • EAST

      public static final BooleanProperty EAST
      Mappings:
      Namespace Name Mixin selector
      official e Lckp;e:Lcou;
      intermediary field_11673 Lnet/minecraft/class_2538;field_11673:Lnet/minecraft/class_2746;
      named EAST Lnet/minecraft/block/TripwireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
    • SOUTH

      public static final BooleanProperty SOUTH
      Mappings:
      Namespace Name Mixin selector
      official f Lckp;f:Lcou;
      intermediary field_11678 Lnet/minecraft/class_2538;field_11678:Lnet/minecraft/class_2746;
      named SOUTH Lnet/minecraft/block/TripwireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
    • WEST

      public static final BooleanProperty WEST
      Mappings:
      Namespace Name Mixin selector
      official g Lckp;g:Lcou;
      intermediary field_11674 Lnet/minecraft/class_2538;field_11674:Lnet/minecraft/class_2746;
      named WEST Lnet/minecraft/block/TripwireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
    • FACING_PROPERTIES

      private static final Map<Direction,BooleanProperty> FACING_PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      official j Lckp;j:Ljava/util/Map;
      intermediary field_11676 Lnet/minecraft/class_2538;field_11676:Ljava/util/Map;
      named FACING_PROPERTIES Lnet/minecraft/block/TripwireBlock;FACING_PROPERTIES:Ljava/util/Map;
    • ATTACHED_SHAPE

      protected static final VoxelShape ATTACHED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official h Lckp;h:Ldpf;
      intermediary field_11682 Lnet/minecraft/class_2538;field_11682:Lnet/minecraft/class_265;
      named ATTACHED_SHAPE Lnet/minecraft/block/TripwireBlock;ATTACHED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • DETACHED_SHAPE

      protected static final VoxelShape DETACHED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official i Lckp;i:Ldpf;
      intermediary field_11681 Lnet/minecraft/class_2538;field_11681:Lnet/minecraft/class_265;
      named DETACHED_SHAPE Lnet/minecraft/block/TripwireBlock;DETACHED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SCHEDULED_TICK_DELAY

      private static final int SCHEDULED_TICK_DELAY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lckp;k:I
      intermediary field_31267 Lnet/minecraft/class_2538;field_31267:I
      named SCHEDULED_TICK_DELAY Lnet/minecraft/block/TripwireBlock;SCHEDULED_TICK_DELAY:I
    • hookBlock

      private final TripwireHookBlock hookBlock
      Mappings:
      Namespace Name Mixin selector
      official l Lckp;l:Lckq;
      intermediary field_11677 Lnet/minecraft/class_2538;field_11677:Lnet/minecraft/class_2537;
      named hookBlock Lnet/minecraft/block/TripwireBlock;hookBlock:Lnet/minecraft/block/TripwireHookBlock;
  • Constructor Details

    • TripwireBlock

      public TripwireBlock(TripwireHookBlock hookBlock, AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckp;<init>(Lckq;Lcob$c;)V
      intermediary <init> Lnet/minecraft/class_2538;<init>(Lnet/minecraft/class_2537;Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/TripwireBlock;<init>(Lnet/minecraft/block/TripwireHookBlock;Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      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;
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lbwe;)Lcoc;
      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;
    • 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 class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lgm;Lcoc;Lcae;Lgh;Lgh;)Lcoc;
      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;
    • onBlockAdded

      public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
      Overrides:
      onBlockAdded in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcob;b(Lcoc;Lcad;Lgh;Lcoc;Z)V
      intermediary method_9615 Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      named onBlockAdded Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • onStateReplaced

      public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
      Called in WorldChunk.setBlockState(BlockPos, BlockState, boolean) if newState is different from state. Vanilla blocks perform removal cleanups here.
      Overrides:
      onStateReplaced in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lcoc;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
    • onBreak

      public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcad;Lgh;Lcoc;Lbnr;)V
      intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • update

      private void update(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lckp;a(Lcad;Lgh;Lcoc;)V
      intermediary method_10779 Lnet/minecraft/class_2538;method_10779(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named update Lnet/minecraft/block/TripwireBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • onEntityCollision

      public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
      Overrides:
      onEntityCollision in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lawt;)V
      intermediary method_9548 Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
      named onEntityCollision Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Ladi;Lgh;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
    • updatePowered

      private void updatePowered(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lckp;a(Lcad;Lgh;)V
      intermediary method_10780 Lnet/minecraft/class_2538;method_10780(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named updatePowered Lnet/minecraft/block/TripwireBlock;updatePowered(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • shouldConnectTo

      public boolean shouldConnectTo(BlockState state, Direction facing)
      Mappings:
      Namespace Name Mixin selector
      official a Lckp;a(Lcoc;Lgm;)Z
      intermediary method_10778 Lnet/minecraft/class_2538;method_10778(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
      named shouldConnectTo Lnet/minecraft/block/TripwireBlock;shouldConnectTo(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Applies a block rotation to a block state.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      the rotated block state
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lciu;)Lcoc;
      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

      public BlockState mirror(BlockState state, BlockMirror mirror)
      Overrides:
      mirror in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lchh;)Lcoc;
      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

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcod$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