Class StriderEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Leashable, Tickable, ClientVehicle

public class StriderEntity extends AnimalEntity implements Tickable, ClientVehicle
  • Constructor Details

  • Method Details

    • setCold

      public void setCold(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • updateBedrockMetadata

      public void updateBedrockMetadata()
      Description copied from class: Entity
      Sends the Bedrock metadata to the client
      Overrides:
      updateBedrockMetadata in class Entity
    • isShaking

      protected boolean isShaking()
      Description copied from class: Entity
      If true, the entity should be shaking on the client's end.
      Overrides:
      isShaking in class LivingEntity
      Returns:
      whether EntityFlag.SHAKING should be set to true.
    • getFoodTag

      protected @Nullable Tag<Item> getFoodTag()
      Specified by:
      getFoodTag in class AnimalEntity
      Returns:
      the tag associated with this animal for eating food. Null for nothing or different behavior.
    • testMobInteraction

      protected @NonNull InteractiveTag testMobInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
      Overrides:
      testMobInteraction in class AnimalEntity
    • mobInteract

      protected @NonNull InteractionResult mobInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
      Overrides:
      mobInteract in class AnimalEntity
    • setBoost

      public void setBoost(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • tick

      public void tick()
      Description copied from interface: Tickable
      This function gets called every game tick as long as the game tick loop isn't frozen.
      Specified by:
      tick in interface Tickable
    • getVehicleComponent

      public VehicleComponent<?> getVehicleComponent()
      Specified by:
      getVehicleComponent in interface ClientVehicle
    • getRiddenInput

      public org.cloudburstmc.math.vector.Vector3f getRiddenInput(org.cloudburstmc.math.vector.Vector2f input)
      Specified by:
      getRiddenInput in interface ClientVehicle
    • getVehicleSpeed

      public float getVehicleSpeed()
      Specified by:
      getVehicleSpeed in interface ClientVehicle
    • isClientControlled

      public boolean isClientControlled()
      Specified by:
      isClientControlled in interface ClientVehicle
    • canWalkOnLava

      public boolean canWalkOnLava()
      Specified by:
      canWalkOnLava in interface ClientVehicle
    • canUseSlot

      protected boolean canUseSlot(org.geysermc.mcprotocollib.protocol.data.game.entity.EquipmentSlot slot)
      Overrides:
      canUseSlot in class LivingEntity