Class SculkSensorBlock

All Implemented Interfaces:
BlockEntityProvider, FluidDrainable, FluidFillable, Waterloggable, ItemConvertible

public class SculkSensorBlock extends BlockWithEntity implements Waterloggable
Mappings:
Namespace Name
official cpg
intermediary net/minecraft/class_5703
named net/minecraft/block/SculkSensorBlock
  • Field Details

    • field_31239

      public static final int field_31239
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcpg;a:I
      intermediary field_31239 Lnet/minecraft/class_5703;field_31239:I
      named field_31239 Lnet/minecraft/block/SculkSensorBlock;field_31239:I
    • field_31240

      public static final int field_31240
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcpg;b:I
      intermediary field_31240 Lnet/minecraft/class_5703;field_31240:I
      named field_31240 Lnet/minecraft/block/SculkSensorBlock;field_31240:I
    • FREQUENCIES

      public static final Object2IntMap<GameEvent> FREQUENCIES
      Mappings:
      Namespace Name Mixin selector
      official c Lcpg;c:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_28110 Lnet/minecraft/class_5703;field_28110:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named FREQUENCIES Lnet/minecraft/block/SculkSensorBlock;FREQUENCIES:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
    • SCULK_SENSOR_PHASE

      public static final EnumProperty<SculkSensorPhase> SCULK_SENSOR_PHASE
      Mappings:
      Namespace Name Mixin selector
      official d Lcpg;d:Lcvp;
      intermediary field_28111 Lnet/minecraft/class_5703;field_28111:Lnet/minecraft/class_2754;
      named SCULK_SENSOR_PHASE Lnet/minecraft/block/SculkSensorBlock;SCULK_SENSOR_PHASE:Lnet/minecraft/state/property/EnumProperty;
    • POWER

      public static final IntProperty POWER
      Mappings:
      Namespace Name Mixin selector
      official e Lcpg;e:Lcvr;
      intermediary field_28112 Lnet/minecraft/class_5703;field_28112:Lnet/minecraft/class_2758;
      named POWER Lnet/minecraft/block/SculkSensorBlock;POWER:Lnet/minecraft/state/property/IntProperty;
    • WATERLOGGED

      public static final BooleanProperty WATERLOGGED
      Mappings:
      Namespace Name Mixin selector
      official f Lcpg;f:Lcvi;
      intermediary field_28113 Lnet/minecraft/class_5703;field_28113:Lnet/minecraft/class_2746;
      named WATERLOGGED Lnet/minecraft/block/SculkSensorBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
    • OUTLINE_SHAPE

      protected static final VoxelShape OUTLINE_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official g Lcpg;g:Ldwl;
      intermediary field_28114 Lnet/minecraft/class_5703;field_28114:Lnet/minecraft/class_265;
      named OUTLINE_SHAPE Lnet/minecraft/block/SculkSensorBlock;OUTLINE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official h Lcpg;h:I
      intermediary field_28115 Lnet/minecraft/class_5703;field_28115:I
      named range Lnet/minecraft/block/SculkSensorBlock;range:I
  • Constructor Details

    • SculkSensorBlock

      public SculkSensorBlock(AbstractBlock.Settings settings, int range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcpg;<init>(Lcuq$c;I)V
      intermediary <init> Lnet/minecraft/class_5703;<init>(Lnet/minecraft/class_4970$class_2251;I)V
      named <init> Lnet/minecraft/block/SculkSensorBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;I)V
  • Method Details

    • getRange

      public int getRange()
      Mappings:
      Namespace Name Mixin selector
      official d Lcpg;d()I
      intermediary method_32907 Lnet/minecraft/class_5703;method_32907()I
      named getRange Lnet/minecraft/block/SculkSensorBlock;getRange()I
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcca;)Lcur;
      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;
    • getFluidState

      public FluidState getFluidState(BlockState state)
      Overrides:
      getFluidState in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c_ Lcuq;c_(Lcur;)Ldox;
      intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lafo;Lgt;Lalu;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • onSteppedOn

      public void onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity)
      Called when an entity steps on this block.
      Overrides:
      onSteppedOn in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcga;Lgt;Lcur;Lbaq;)V
      intermediary method_9591 Lnet/minecraft/class_2248;method_9591(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1297;)V
      named onSteppedOn Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;)V
    • 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 Lcuq;b(Lcur;Lcga;Lgt;Lcur;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 Lcuq;a(Lcur;Lcga;Lgt;Lcur;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
    • 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 Lcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;
      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;
    • updateNeighbors

      private static void updateNeighbors(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpg;a(Lcga;Lgt;)V
      intermediary method_32902 Lnet/minecraft/class_5703;method_32902(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named updateNeighbors Lnet/minecraft/block/SculkSensorBlock;updateNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • createBlockEntity

      @Nullable public @Nullable BlockEntity createBlockEntity(BlockPos pos, BlockState state)
      Specified by:
      createBlockEntity in interface BlockEntityProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcle;a(Lgt;Lcur;)Lcsl;
      intermediary method_10123 Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
    • getGameEventListener

      @Nullable public <T extends BlockEntity> @Nullable GameEventListener getGameEventListener(ServerWorld world, T blockEntity)
      Specified by:
      getGameEventListener in interface BlockEntityProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcle;a(Lafo;Lcsl;)Lcyz;
      intermediary method_32896 Lnet/minecraft/class_2343;method_32896(Lnet/minecraft/class_3218;Lnet/minecraft/class_2586;)Lnet/minecraft/class_5714;
      named getGameEventListener Lnet/minecraft/block/BlockEntityProvider;getGameEventListener(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/entity/BlockEntity;)Lnet/minecraft/world/event/listener/GameEventListener;
    • getTicker

      @Nullable public <T extends BlockEntity> @Nullable BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type)
      Specified by:
      getTicker in interface BlockEntityProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcle;a(Lcga;Lcur;Lcsn;)Lcsm;
      intermediary method_31645 Lnet/minecraft/class_2343;method_31645(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2591;)Lnet/minecraft/class_5558;
      named getTicker Lnet/minecraft/block/BlockEntityProvider;getTicker(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/block/entity/BlockEntityTicker;
    • getRenderType

      public BlockRenderType getRenderType(BlockState state)
      Overrides:
      getRenderType in class BlockWithEntity
      Mappings:
      Namespace Name Mixin selector
      official b_ Lcuq;b_(Lcur;)Lcos;
      intermediary method_9604 Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;
      named getRenderType Lnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcfg;Lgt;Ldvx;)Ldwl;
      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;
    • emitsRedstonePower

      public boolean emitsRedstonePower(BlockState state)
      Overrides:
      emitsRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official f_ Lcuq;f_(Lcur;)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
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
      Overrides:
      getWeakRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcfg;Lgt;Lgy;)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
    • getPhase

      public static SculkSensorPhase getPhase(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lcpg;h(Lcur;)Lcvx;
      intermediary method_32908 Lnet/minecraft/class_5703;method_32908(Lnet/minecraft/class_2680;)Lnet/minecraft/class_5705;
      named getPhase Lnet/minecraft/block/SculkSensorBlock;getPhase(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/enums/SculkSensorPhase;
    • isInactive

      public static boolean isInactive(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official n Lcpg;n(Lcur;)Z
      intermediary method_32909 Lnet/minecraft/class_5703;method_32909(Lnet/minecraft/class_2680;)Z
      named isInactive Lnet/minecraft/block/SculkSensorBlock;isInactive(Lnet/minecraft/block/BlockState;)Z
    • setCooldown

      public static void setCooldown(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpg;a(Lcga;Lgt;Lcur;)V
      intermediary method_32903 Lnet/minecraft/class_5703;method_32903(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named setCooldown Lnet/minecraft/block/SculkSensorBlock;setCooldown(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • setActive

      public static void setActive(@Nullable @Nullable Entity entity, World world, BlockPos pos, BlockState state, int power)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpg;a(Lbaq;Lcga;Lgt;Lcur;I)V
      intermediary method_32904 Lnet/minecraft/class_5703;method_32904(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)V
      named setActive Lnet/minecraft/block/SculkSensorBlock;setActive(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
    • randomDisplayTick

      public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcur;Lcga;Lgt;Lalu;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • appendProperties

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

      public boolean hasComparatorOutput(BlockState state)
      Overrides:
      hasComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official d_ Lcuq;d_(Lcur;)Z
      intermediary method_9498 Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z
      named hasComparatorOutput Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
    • getComparatorOutput

      public int getComparatorOutput(BlockState state, World world, BlockPos pos)
      Overrides:
      getComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcga;Lgt;)I
      intermediary method_9572 Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
      named getComparatorOutput Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • canPathfindThrough

      public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
      Overrides:
      canPathfindThrough in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcfg;Lgt;Ldpo;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
    • hasSidedTransparency

      public boolean hasSidedTransparency(BlockState state)
      Overrides:
      hasSidedTransparency in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official g_ Lcuq;g_(Lcur;)Z
      intermediary method_9526 Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Z
      named hasSidedTransparency Lnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
    • onStacksDropped

      public void onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience)
      Overrides:
      onStacksDropped in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lafo;Lgt;Lcaa;Z)V
      intermediary method_9565 Lnet/minecraft/class_4970;method_9565(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;Z)V
      named onStacksDropped Lnet/minecraft/block/AbstractBlock;onStacksDropped(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;Z)V