Package net.minecraft.block
Class SculkSensorBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.SculkSensorBlock
- All Implemented Interfaces:
BlockEntityProvider
,FluidDrainable
,FluidFillable
,Waterloggable
,ItemConvertible
- Mappings:
Namespace Name official cir
intermediary net/minecraft/class_5703
named net/minecraft/block/SculkSensorBlock
-
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 final int
static final int
static final Object2IntMap<GameEvent>
protected static final VoxelShape
static final IntProperty
private final int
static final EnumProperty<SculkSensorPhase>
static final BooleanProperty
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
canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) createBlockEntity
(BlockPos pos, BlockState state) boolean
emitsRedstonePower
(BlockState state) int
getComparatorOutput
(BlockState state, World world, BlockPos pos) getFluidState
(BlockState state) <T extends BlockEntity>
@Nullable GameEventListenergetGameEventListener
(World world, T blockEntity) getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) static SculkSensorPhase
getPhase
(BlockState state) int
getRange()
getRenderType
(BlockState state) 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.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>getTicker
(World world, BlockState state, BlockEntityType<T> type) int
getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) boolean
hasComparatorOutput
(BlockState state) boolean
hasSidedTransparency
(BlockState state) static boolean
isInactive
(BlockState state) void
onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) void
onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
.void
randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) static void
setActive
(World world, BlockPos pos, BlockState state, int power) static void
setCooldown
(World world, BlockPos pos, BlockState state) private static void
updateNeighbors
(World world, BlockPos pos) Methods inherited from class net.minecraft.block.BlockWithEntity
checkType, createScreenHandlerFactory, onSyncedBlockEvent
Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, 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, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onUse, prepare, randomTick, rotate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
field_31239
public static final int field_31239- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lcir;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
Lcir;b:I
intermediary field_31240
Lnet/minecraft/class_5703;field_31240:I
named field_31240
Lnet/minecraft/block/SculkSensorBlock;field_31240:I
-
FREQUENCIES
- Mappings:
Namespace Name Mixin selector official c
Lcir;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
- Mappings:
Namespace Name Mixin selector official d
Lcir;d:Lcou;
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
- Mappings:
Namespace Name Mixin selector official e
Lcir;e:Lcow;
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
- Mappings:
Namespace Name Mixin selector official f
Lcir;f:Lcom;
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
- Mappings:
Namespace Name Mixin selector official g
Lcir;g:Ldos;
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
Lcir;h:I
intermediary field_28115
Lnet/minecraft/class_5703;field_28115:I
named range
Lnet/minecraft/block/SculkSensorBlock;range:I
-
-
Constructor Details
-
SculkSensorBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lcir;<init>(Lcnu$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
Lcir;e()I
intermediary method_32907
Lnet/minecraft/class_5703;method_32907()I
named getRange
Lnet/minecraft/block/SculkSensorBlock;getRange()I
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lbvx;)Lcnv;
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
- Overrides:
getFluidState
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official c_
Lcnu;c_(Lcnv;)Ldhi;
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
- Overrides:
scheduledTick
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Ladc;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
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) - Overrides:
onBlockAdded
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lcnu;b(Lcnv;Lbzw;Lgh;Lcnv;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 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
Lcnu;a(Lcnv;Lbzw;Lgh;Lcnv;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 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
Lcnu;a(Lcnv;Lgm;Lcnv;Lbzx;Lgh;Lgh;)Lcnv;
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
- Mappings:
Namespace Name Mixin selector official a
Lcir;a(Lbzw;Lgh;)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
- Specified by:
createBlockEntity
in interfaceBlockEntityProvider
- Mappings:
Namespace Name Mixin selector official a
Lcey;a(Lgh;Lcnv;)Lcls;
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 interfaceBlockEntityProvider
- Mappings:
Namespace Name Mixin selector official a
Lcey;a(Lbzw;Lcls;)Lcsa;
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 interfaceBlockEntityProvider
- Mappings:
Namespace Name Mixin selector official a
Lcey;a(Lbzw;Lcnv;Lclu;)Lclt;
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
- Overrides:
getRenderType
in classBlockWithEntity
- Mappings:
Namespace Name Mixin selector official b_
Lcnu;b_(Lcnv;)Lcig;
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 classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzc;Lgh;Ldoe;)Ldos;
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
- Overrides:
emitsRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official f_
Lcnu;f_(Lcnv;)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 classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzc;Lgh;Lgm;)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
- Mappings:
Namespace Name Mixin selector official h
Lcir;h(Lcnv;)Lcpc;
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
- Mappings:
Namespace Name Mixin selector official n
Lcir;n(Lcnv;)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
- Mappings:
Namespace Name Mixin selector official a
Lcir;a(Lbzw;Lgh;Lcnv;)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
- Mappings:
Namespace Name Mixin selector official a
Lcir;a(Lbzw;Lgh;Lcnv;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
- Overrides:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lcnv;Lbzw;Lgh;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
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lcnw$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
- Overrides:
hasComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official d_
Lcnu;d_(Lcnv;)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
- Overrides:
getComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzw;Lgh;)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
-
hasSidedTransparency
- Overrides:
hasSidedTransparency
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official g_
Lcnu;g_(Lcnv;)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
-