Class ThrowableItemEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Tickable
Direct Known Subclasses:
AbstractWindChargeEntity, ThrowableEggEntity, ThrownPotionEntity

public class ThrowableItemEntity extends ThrowableEntity
Used as a class for any projectile entity that looks like an item
  • Constructor Details

  • Method Details

    • initializeMetadata

      protected void initializeMetadata()
      Description copied from class: Entity
      Called on entity spawn. Used to populate the entity metadata and flags with default values.
      Overrides:
      initializeMetadata in class Entity
    • drawTick

      public void drawTick()
      Description copied from interface: Tickable
      This function gets called every tick at all times, even when the server requests that the game should be frozen. This should be used for updating things that are always client side updated on Java, regardless of if the server is frozen or not.
    • setInvisible

      protected void setInvisible(boolean value)
      Description copied from class: Entity
      Set a boolean - whether the entity is invisible or visible
      Overrides:
      setInvisible in class Entity
      Parameters:
      value - true if the entity is invisible
    • setItem

      public void setItem(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack,?> entityMetadata)