Class MovementBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
com.simibubi.create.foundation.blockEntity.SmartBlockEntity
petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
petrolpark.mc.petrolsparts.content.kinetics.movement.MovementBlockEntity
All Implemented Interfaces:
com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon, com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation, com.simibubi.create.api.equipment.goggles.IHaveHoveringInformation, com.simibubi.create.api.schematic.nbt.PartialSafeNBT, com.simibubi.create.api.schematic.requirement.SpecialBlockEntityItemRequirement, com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable, com.simibubi.create.foundation.utility.IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class MovementBlockEntity extends petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity implements com.simibubi.create.api.equipment.goggles.IHaveHoveringInformation, com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation, com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
    class 
     

    Nested classes/interfaces inherited from class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity

    petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart, petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.GeneratingCompositeKineticBlockEntityPart

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected petrolpark.mc.library.compat.create.core.world.block.entity.behaviour.FlagPoleBehaviour
     
     
    protected final List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart>
     
    protected float
     
     
    protected net.minecraft.world.item.ItemStack
     
     

    Fields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity

    lazyTickCounter, lazyTickRate

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    MovementBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours)
     
    boolean
    addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
     
    boolean
    addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
     
    protected void
    applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput)
     
    protected void
    collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
     
    protected net.minecraft.world.phys.AABB
     
    net.minecraft.network.chat.MutableComponent
    format(int value)
     
    float
     
    int
     
    float
     
    int
     
    int
     
    List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart>
     
    boolean
     
    protected void
    read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     
    void
    setWeightStack(net.minecraft.world.item.ItemStack newWeightStack)
     
    boolean
     
    void
     
    protected void
    write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     

    Methods inherited from class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity

    addMultiParts, destroy, initialize, invalidate, lazyTick, onChunkUnloaded, preventSpeedUpdates, queueRotationIndicators, remove, removeExistingKineticInformation, setBlockState, setLevel, streamAny

    Methods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity

    addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, isChunkUnloaded, isVirtual, loadAdditional, markVirtual, readClient, refreshBlockState, registerAwardables, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafe

    Methods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity

    getRenderBoundingBox, invalidateRenderBoundingBox

    Methods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity

    blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, sendData

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setChanged, setChanged, setComponents, setData, syncData, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdate

    Methods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon

    getIcon

    Methods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation

    containedFluidTooltip
  • Field Details

    • windingPart

      public final MovementBlockEntity.WindingPart windingPart
    • generatingPart

      public final MovementBlockEntity.GeneratingPart generatingPart
    • parts

      protected final List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart> parts
    • rotationsCharge

      protected float rotationsCharge
    • weightStack

      protected net.minecraft.world.item.ItemStack weightStack
    • weightData

      protected MovementWeightData weightData
    • flagPole

      protected petrolpark.mc.library.compat.create.core.world.block.entity.behaviour.FlagPoleBehaviour flagPole
  • Constructor Details

    • MovementBlockEntity

      public MovementBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • addBehaviours

      public void addBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
    • getMaxRotationsCharge

      public float getMaxRotationsCharge()
    • getBaseRotationSpeed

      public float getBaseRotationSpeed()
    • setWeightStack

      public void setWeightStack(net.minecraft.world.item.ItemStack newWeightStack)
    • isFullyCharged

      public boolean isFullyCharged()
    • shouldGenerate

      public boolean shouldGenerate()
    • getParts

      public List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart> getParts()
      Specified by:
      getParts in class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      read in class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
    • write

      protected void write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      write in class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
    • createRenderBoundingBox

      protected net.minecraft.world.phys.AABB createRenderBoundingBox()
      Overrides:
      createRenderBoundingBox in class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
    • applyImplicitComponents

      protected void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput)
      Overrides:
      applyImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • collectImplicitComponents

      protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
      Overrides:
      collectImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • addToTooltip

      public boolean addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      Specified by:
      addToTooltip in interface com.simibubi.create.api.equipment.goggles.IHaveHoveringInformation
    • addToGoggleTooltip

      public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      Specified by:
      addToGoggleTooltip in interface com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation
    • getMaxValue

      public int getMaxValue()
      Specified by:
      getMaxValue in interface com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
    • getMinValue

      public int getMinValue()
      Specified by:
      getMinValue in interface com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
    • getCurrentValue

      public int getCurrentValue()
      Specified by:
      getCurrentValue in interface com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
    • format

      public net.minecraft.network.chat.MutableComponent format(int value)
      Specified by:
      format in interface com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable