类 SculkSensorBlockEntity
- java.lang.Object
-
- net.minecraft.block.entity.BlockEntity
-
- net.minecraft.block.entity.SculkSensorBlockEntity
-
- 所有已实现的接口:
SculkSensorListener.Callback
public class SculkSensorBlockEntity extends BlockEntity implements SculkSensorListener.Callback
- Mappings:
Namespace Name official cinintermediary net/minecraft/class_5704named net/minecraft/block/entity/SculkSensorBlockEntity
-
-
字段概要
字段 修饰符和类型 字段 说明 private intlastVibrationFrequencyprivate SculkSensorListenerlistener-
从类继承的字段 net.minecraft.block.entity.BlockEntity
pos, removed, world
-
-
构造器概要
构造器 构造器 说明 SculkSensorBlockEntity(BlockPos pos, BlockState state)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(World world, GameEventListener listener, GameEvent event, int distance)Accepts a game event after delay.booleanaccepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity)Returns whether the callback wants to accept this event.SculkSensorListenergetEventListener()intgetLastVibrationFrequency()static intgetPower(int distance, int range)voidreadNbt(CompoundTag nbt)CompoundTagwriteNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, toUpdatePacket
-
-
-
-
字段详细资料
-
listener
private final SculkSensorListener listener
- Mappings:
Namespace Name Mixin selector official aLcin;a:Lcoa;intermediary field_28118Lnet/minecraft/class_5704;field_28118:Lnet/minecraft/class_5718;named listenerLnet/minecraft/block/entity/SculkSensorBlockEntity;listener:Lnet/minecraft/world/event/listener/SculkSensorListener;
-
lastVibrationFrequency
private int lastVibrationFrequency
- Mappings:
Namespace Name Mixin selector official bLcin;b:Iintermediary field_28119Lnet/minecraft/class_5704;field_28119:Inamed lastVibrationFrequencyLnet/minecraft/block/entity/SculkSensorBlockEntity;lastVibrationFrequency:I
-
-
构造器详细资料
-
SculkSensorBlockEntity
public SculkSensorBlockEntity(BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lcin;<init>(Lgb;Lcjr;)Vintermediary <init>Lnet/minecraft/class_5704;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/SculkSensorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
方法详细资料
-
readNbt
public void readNbt(CompoundTag nbt)
- 覆盖:
readNbt在类中BlockEntity- Mappings:
Namespace Name Mixin selector official aLchp;a(Lmv;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeNbt
public CompoundTag writeNbt(CompoundTag nbt)
- 覆盖:
writeNbt在类中BlockEntity- Mappings:
Namespace Name Mixin selector official bLchp;b(Lmv;)Lmv;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getEventListener
public SculkSensorListener getEventListener()
- Mappings:
Namespace Name Mixin selector official dLcin;d()Lcoa;intermediary method_32911Lnet/minecraft/class_5704;method_32911()Lnet/minecraft/class_5718;named getEventListenerLnet/minecraft/block/entity/SculkSensorBlockEntity;getEventListener()Lnet/minecraft/world/event/listener/SculkSensorListener;
-
getLastVibrationFrequency
public int getLastVibrationFrequency()
- Mappings:
Namespace Name Mixin selector official fLcin;f()Iintermediary method_32912Lnet/minecraft/class_5704;method_32912()Inamed getLastVibrationFrequencyLnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
-
accepts
public boolean accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity)
Returns whether the callback wants to accept this event.- 指定者:
accepts在接口中SculkSensorListener.Callback- Mappings:
Namespace Name Mixin selector official aLcoa$a;a(Lbvr;Lcnv;Lgb;Lcnt;Lasl;)Zintermediary method_32970Lnet/minecraft/class_5718$class_5719;method_32970(Lnet/minecraft/class_1937;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)Znamed acceptsLnet/minecraft/world/event/listener/SculkSensorListener$Callback;accepts(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)Z
-
accept
public void accept(World world, GameEventListener listener, GameEvent event, int distance)
Accepts a game event after delay.- 指定者:
accept在接口中SculkSensorListener.Callback- Mappings:
Namespace Name Mixin selector official aLcoa$a;a(Lbvr;Lcnv;Lcnt;I)Vintermediary method_32969Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_1937;Lnet/minecraft/class_5714;Lnet/minecraft/class_5712;I)Vnamed acceptLnet/minecraft/world/event/listener/SculkSensorListener$Callback;accept(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/event/GameEvent;I)V
-
getPower
public static int getPower(int distance, int range)- Mappings:
Namespace Name Mixin selector official bLcin;b(II)Iintermediary method_32910Lnet/minecraft/class_5704;method_32910(II)Inamed getPowerLnet/minecraft/block/entity/SculkSensorBlockEntity;getPower(II)I
-
-