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
public class SculkSensorBlock extends BlockWithEntity implements Waterloggable
- Mappings:
Namespace Name official ccq
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
Fields Modifier and Type Field Description static Object2IntMap<GameEvent>
FREQUENCIES
protected static VoxelShape
OUTLINE_SHAPE
static IntProperty
POWER
private int
range
static EnumProperty<SculkSensorPhase>
SCULK_SENSOR_PHASE
static BooleanProperty
WATERLOGGED
Fields inherited from class net.minecraft.block.Block
LOGGER, 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
Constructors Constructor Description SculkSensorBlock(AbstractBlock.Settings settings, int range)
-
Method Summary
Methods inherited from class net.minecraft.block.BlockWithEntity
checkType, createScreenHandlerFactory, onSyncedBlockEvent
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_33614, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVisualShape, 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
-
FREQUENCIES
- Mappings:
Namespace Name Mixin selector official a
Lccq;a: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 b
Lccq;b:Lcir;
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 c
Lccq;c:Lcit;
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 d
Lccq;d:Lcik;
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 e
Lccq;e:Ldjn;
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 f
Lccq;f: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>
Lccq;<init>(Lchs$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
Lccq;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
Lbwu;a(Lbpv;)Lcht;
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 d
Lchs;d(Lcht;)Ldal;
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_
Lchs;a_(Lcht;Laav;Lfx;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
Lchs;b(Lcht;Lbtv;Lfx;Lcht;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
Lchs;a(Lcht;Lbtv;Lfx;Lcht;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
Lchs;a(Lcht;Lgc;Lcht;Lbtw;Lfx;Lfx;)Lcht;
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
Lccq;a(Lbtv;Lfx;)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
Lbzb;a(Lfx;Lcht;)Lcfr;
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> GameEventListener getGameEventListener(World world, T blockEntity)- Specified by:
getGameEventListener
in interfaceBlockEntityProvider
- Mappings:
Namespace Name Mixin selector official a
Lbzb;a(Lbtv;Lcfr;)Lclv;
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> BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type)- Specified by:
getTicker
in interfaceBlockEntityProvider
- Mappings:
Namespace Name Mixin selector official a
Lbzb;a(Lbtv;Lcht;Lcft;)Lcfs;
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 a_
Lchs;a_(Lcht;)Lccg;
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
Lchs;a(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
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 d_
Lchs;d_(Lcht;)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
Lchs;a(Lcht;Lbsz;Lfx;Lgc;)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
Lccq;h(Lcht;)Lciz;
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 m
Lccq;m(Lcht;)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
Lccq;a(Lbtv;Lfx;Lcht;)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
Lccq;a(Lbtv;Lfx;Lcht;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
@Environment(CLIENT) public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)- Overrides:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lcht;Lbtv;Lfx;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
Lbwu;a(Lchu$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 b
Lchs;b(Lcht;)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
Lchs;a(Lcht;Lbtv;Lfx;)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 e_
Lchs;e_(Lcht;)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
-