Class TropicalFishEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.MobEntity
org.geysermc.geyser.entity.type.living.CreatureEntity
org.geysermc.geyser.entity.type.living.WaterEntity
org.geysermc.geyser.entity.type.living.AbstractFishEntity
org.geysermc.geyser.entity.type.living.animal.TropicalFishEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionTropicalFishEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionstatic bytegetBaseColor(int variant)static StringgetColorName(byte colorId)static intgetPattern(int variant)static bytegetPatternColor(int variant)static intgetPredefinedId(int variant)static intgetShape(int variant)static StringgetVariantName(int variant)voidsetFishVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)Methods inherited from class org.geysermc.geyser.entity.type.living.AbstractFishEntity
mobInteractMethods inherited from class org.geysermc.geyser.entity.type.living.WaterEntity
canBeLeashedMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
initializeMetadata, interact, isEnemy, isNotLeashed, setLeashHolderBedrockId, setMobFlags, testInteraction, testMobInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, hasShield, isAlive, isShaking, setBedPosition, setDimensions, setFreezing, setHealth, setLivingEntityFlags, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getFlag, getMaxAir, interactAt, moveAbsolute, moveAbsolute, moveRelative, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setGravity, setInvisible, setPose, setRiderSeatPosition, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
TropicalFishEntity
public TropicalFishEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
setFishVariant
public void setFishVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) -
getShape
public static int getShape(int variant) -
getPattern
public static int getPattern(int variant) -
getBaseColor
public static byte getBaseColor(int variant) -
getPatternColor
public static byte getPatternColor(int variant) -
getVariantName
-
getColorName
-
getPredefinedId
public static int getPredefinedId(int variant)
-