类 CableBlockEntityMixin
java.lang.Object
net.minecraft.block.entity.BlockEntity
cn.korostudio.c3h6n6o6.mixin.tech.CableBlockEntityMixin
- 所有已实现的接口:
net.minecraft.block.entity.BlockEntityTicker<techreborn.blockentity.cable.CableBlockEntity>
public class CableBlockEntityMixin
extends net.minecraft.block.entity.BlockEntity
implements net.minecraft.block.entity.BlockEntityTicker<techreborn.blockentity.cable.CableBlockEntity>
这里重写了Tech线缆运行逻辑,将线缆运算全部放到独立线程运行,但在极多线缆的情况下可能会出现滞后,不过还未完全验证,等到有bug再修(
-
字段概要
修饰符和类型字段说明private static org.slf4j.Logger
那会吾还不会用@Slf4jprivate static LinkedBlockingQueue<techreborn.blockentity.cable.CableBlockEntity>
一个有界阻塞队列,用于缓存线缆实体。private static Thread
(专用程序包) List<techreborn.blockentity.cable.CableBlockEntity.CableTarget>
兼容。。从类继承的字段 net.minecraft.block.entity.BlockEntity
pos, removed, world
-
构造器概要
构造器说明CableBlockEntityMixin
(net.minecraft.block.entity.BlockEntityType<?> type, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state) 兼容。。 -
方法概要
修饰符和类型方法说明private void
setNullCheck
(List<techreborn.blockentity.cable.OfferedEnergyStorage> targetStorages, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 兼容。。private void
synList
(techreborn.blockentity.cable.CableBlockEntity instance, List<techreborn.blockentity.cable.CableBlockEntity.CableTarget> value) 兼容。。void
tick
(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, techreborn.blockentity.cable.CableBlockEntity blockEntity2) 兼容。。从类继承的方法 net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, readNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt, writeNbt
-
字段详细资料
-
LOGGER
private static org.slf4j.Logger LOGGER那会吾还不会用@Slf4j -
SynchronizationQueue
private static LinkedBlockingQueue<techreborn.blockentity.cable.CableBlockEntity> SynchronizationQueue一个有界阻塞队列,用于缓存线缆实体。 -
SynchronizationThread
-
targets
List<techreborn.blockentity.cable.CableBlockEntity.CableTarget> targets兼容。。兼容。。。
-
-
构造器详细资料
-
CableBlockEntityMixin
public CableBlockEntityMixin(net.minecraft.block.entity.BlockEntityType<?> type, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state) 兼容。。兼容。。。
-
-
方法详细资料
-
synList
private void synList(techreborn.blockentity.cable.CableBlockEntity instance, List<techreborn.blockentity.cable.CableBlockEntity.CableTarget> value) 兼容。。兼容。。。 -
setNullCheck
private void setNullCheck(List<techreborn.blockentity.cable.OfferedEnergyStorage> targetStorages, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 兼容。。兼容。。。 -
tick
public void tick(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, techreborn.blockentity.cable.CableBlockEntity blockEntity2) 兼容。。兼容。。。- 指定者:
tick
在接口中net.minecraft.block.entity.BlockEntityTicker<techreborn.blockentity.cable.CableBlockEntity>
-