Class EjectorBlockEntity

All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class EjectorBlockEntity extends KineticBlockEntity
  • Constructor Details

    • EjectorBlockEntity

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

    • registerCapabilities

      public static void registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticBlockEntity
    • initialize

      public void initialize()
      Overrides:
      initialize in class KineticBlockEntity
    • activate

      public void activate()
    • cannotLaunch

      protected boolean cannotLaunch()
    • activateDeferred

      public void activateDeferred()
    • deployElytra

      public void deployElytra(net.minecraft.world.entity.player.Player playerEntity)
    • launchItems

      protected void launchItems()
    • addToLaunchedItems

      protected boolean addToLaunchedItems(net.minecraft.world.item.ItemStack stack)
    • getFacing

      protected net.minecraft.core.Direction getFacing()
    • tick

      public void tick()
      Overrides:
      tick in class KineticBlockEntity
    • nudgeEntities

      protected void nudgeEntities()
    • ejectIfTriggered

      protected void ejectIfTriggered()
    • placeItemAtTarget

      protected void placeItemAtTarget(boolean doLogic, float maxTime, net.createmod.catnip.data.IntAttached<net.minecraft.world.item.ItemStack> intAttached)
    • getTargetOpenInv

      public DirectBeltInputBehaviour getTargetOpenInv()
    • getLaunchedItemLocation

      public net.minecraft.world.phys.Vec3 getLaunchedItemLocation(float time)
    • getLaunchedItemMotion

      public net.minecraft.world.phys.Vec3 getLaunchedItemMotion(float time)
    • destroy

      public void destroy()
      Description copied from class: SmartBlockEntity
      Block destroyed or replaced. Requires Block to call IBE::onRemove
      Overrides:
      destroy in class SmartBlockEntity
    • dropFlyingItems

      public void dropFlyingItems()
    • getWindUpSpeed

      public float getWindUpSpeed()
    • write

      protected void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class KineticBlockEntity
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from interface: PartialSafeNBT
      This will always be called from the logical server
      Specified by:
      writeSafe in interface PartialSafeNBT
      Overrides:
      writeSafe in class SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticBlockEntity
    • updateSignal

      public void updateSignal()
    • setTarget

      public void setTarget(int horizontalDistance, int verticalDistance)
    • getTargetPosition

      public net.minecraft.core.BlockPos getTargetPosition()
    • getLidProgress

      public float getLidProgress(float pt)
    • getState

      public EjectorBlockEntity.State getState()
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
      Overrides:
      getRenderBoundingBox in class CachedRenderBBBlockEntity