Class SculkSensorBlock

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

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

    • field_31239

      public static final int field_31239
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lcfo;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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Lcfo;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 Lcfo;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 Lcfo;d:Lclq;
      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 Lcfo;e:Lcls;
      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 Lcfo;f:Lclj;
      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 Lcfo;g:Ldnt;
      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 Lcfo;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> Lcfo;<init>(Lckr$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 e Lcfo;e()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 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;
    • getFluidState

      public FluidState getFluidState(BlockState state)
      Overrides:
      getFluidState in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c_ Lckr;c_(Lcks;)Ldes;
      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 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
    • 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 Lckr;b(Lcks;Lbwp;Lgg;Lcks;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 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
    • 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 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;
    • updateNeighbors

      private static void updateNeighbors(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfo;a(Lbwp;Lgg;)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 Lcbv;a(Lgg;Lcks;)Lcip;
      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(World world, T blockEntity)
      Specified by:
      getGameEventListener in interface BlockEntityProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcbv;a(Lbwp;Lcip;)Lcox;
      intermediary method_32896 Lnet/minecraft/class_2343;method_32896(Lnet/minecraft/class_1937;Lnet/minecraft/class_2586;)Lnet/minecraft/class_5714;
      named getGameEventListener Lnet/minecraft/block/BlockEntityProvider;getGameEventListener(Lnet/minecraft/world/World;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 Lcbv;a(Lbwp;Lcks;Lcir;)Lciq;
      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_ Lckr;b_(Lcks;)Lcfd;
      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 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;
    • emitsRedstonePower

      public boolean emitsRedstonePower(BlockState state)
      Overrides:
      emitsRedstonePower in class AbstractBlock
      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
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
      Overrides:
      getWeakRedstonePower in class AbstractBlock
      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
    • getPhase

      public static SculkSensorPhase getPhase(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lcfo;h(Lcks;)Lcly;
      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 Lcfo;n(Lcks;)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 Lcfo;a(Lbwp;Lgg;Lcks;)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(World world, BlockPos pos, BlockState state, int power)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfo;a(Lbwp;Lgg;Lcks;I)V
      intermediary method_32904 Lnet/minecraft/class_5703;method_32904(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)V
      named setActive Lnet/minecraft/block/SculkSensorBlock;setActive(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 Lbzo;a(Lcks;Lbwp;Lgg;Ljava/util/Random;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,​BlockState> builder)
      Overrides:
      appendProperties in class Block
      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
    • hasComparatorOutput

      public boolean hasComparatorOutput(BlockState state)
      Overrides:
      hasComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official d_ Lckr;d_(Lcks;)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 Lckr;a(Lcks;Lbwp;Lgg;)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 Lckr;a(Lcks;Lbvt;Lgg;Ldhb;)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_ Lckr;g_(Lcks;)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