类 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
    那会吾还不会用@Slf4j
    private 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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • LOGGER

      private static org.slf4j.Logger LOGGER
      那会吾还不会用@Slf4j
    • SynchronizationQueue

      private static LinkedBlockingQueue<techreborn.blockentity.cable.CableBlockEntity> SynchronizationQueue
      一个有界阻塞队列,用于缓存线缆实体。
    • SynchronizationThread

      private static Thread 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>