Package net.minecraft.world.entity.animal.horse
Part 1/1
AbstractChestedHorse
- Full name:
net.minecraft.world.entity.animal.horse.AbstractChestedHorse - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractHorse
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#AbstractChestedHorse(EntityType<? extends AbstractChestedHorse>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:31 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractChestedHorse ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: canGallop, babyDimensions. เรียกต่อ: getDimensions(), withAttachments(), builder(), attach(), getHeight(), scale().
Parameters
EntityType<? extends AbstractChestedHorse> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends AbstractChestedHorse> entityType = ...;
Level level = ...;
AbstractChestedHorse instance = new AbstractChestedHorse(entityType, level);
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:76 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: putBoolean(), hasChest(), getContainerSize(), getItem(), isEmpty(), putByte(), add(), save(). สร้างออบเจ็กต์: ListTag, CompoundTag.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
AbstractChestedHorse instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#createBaseChestedHorseAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:50 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Base Chested Horse Attributes
ทำงานยังไง
เรียกต่อ: createBaseHorseAttributes(), add(). คืนค่า: createBaseHorseAttributes().add(Attributes.MOVEMENT_SPEED, 0.175F).add(Attributes.JUMP_STRENGTH, 0.5).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:44 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ AbstractChestedHorse
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#dropEquipment(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:67 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropEquipment ตาม implementation ของ AbstractChestedHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasChest(), spawnAtLocation(), setChest().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void dropEquipment(ServerLevel serverLevel) {
super.dropEquipment(serverLevel);
}
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#getDefaultDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:62 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Default Dimensions
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: this.isBaby() ? this.babyDimensions : super.getDefaultDimensions(pose).
Parameters
Pose pose
ตัวอย่างใช้งาน
AbstractChestedHorse instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDefaultDimensions(pose);
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#getInventoryColumns()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:185 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Inventory Columns
ทำงานยังไง
เรียกต่อ: hasChest(). คืนค่า: this.hasChest() ? 5 : 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:116 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasChest(), set(), isEmpty(), setChest(), createInventory(), is(). สร้างออบเจ็กต์: SlotAccess, ItemStack. มีจุด return อย่างน้อย 4 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#hasChest()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:54 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Chest
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ID_CHEST).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#mobInteract(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:147 - Modifiers:
public - Return:
InteractionResult
คืออะไร
ดำเนินการ mobInteract ตาม implementation ของ AbstractChestedHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isBaby(), isTamed(), isSecondaryUseActive(), isVehicle(), getItemInHand(), isEmpty(), isFood(), fedFood(). มีจุด return อย่างน้อย 5 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
AbstractChestedHorse instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.mobInteract(player, interactionHand);
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#playChestEquipsSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:181 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playChestEquipsSound ตาม implementation ของ AbstractChestedHorse
ทำงานยังไง
เรียกต่อ: playSound(), nextFloat().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#randomizeAttributes(RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:39 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ randomizeAttributes ตาม implementation ของ AbstractChestedHorse
ทำงานยังไง
เรียกต่อ: getAttribute(), setBaseValue(), generateMaxHealth().
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected void randomizeAttributes(RandomSource randomSource) {
super.randomizeAttributes(randomSource);
}
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:96 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: setChest(), getBoolean(), createInventory(), hasChest(), getList(), size(), getCompound(), getByte().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
AbstractChestedHorse instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.AbstractChestedHorse#setChest(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractChestedHorse.java:58 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Chest
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
AbstractHorse
- Full name:
net.minecraft.world.entity.animal.horse.AbstractHorse - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/AbstractHorse.java - Type:
class - Modifiers:
public abstract - Extends:
Animal - Implements:
ContainerListener,HasCustomInventoryScreen,OwnableEntity,PlayerRideableJumping,Saddleable
net.minecraft.world.entity.animal.horse.AbstractHorse#AbstractHorse(EntityType<? extends AbstractHorse>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:147 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractHorse ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: createInventory().
Parameters
EntityType<? extends AbstractHorse> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends AbstractHorse> entityType = ...;
Level level = ...;
AbstractHorse instance = new AbstractHorse(entityType, level);
net.minecraft.world.entity.animal.horse.AbstractHorse#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:823 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putBoolean(), isEating(), isBred(), putInt(), getTemper(), isTamed(), getOwnerUUID(), putUUID().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.AbstractHorse#addBehaviourGoals()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:168 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Behaviour Goals
ทำงานยังไง
เรียกต่อ: addGoal(), is(). สร้างออบเจ็กต์: FloatGoal, TemptGoal.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:571 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: deathTime, eatingCounter. เรียกต่อ: nextInt(), moveTail(), level(), isAlive(), heal(), canEatGrass(), isEating(), isVehicle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#canDispenserEquipIntoSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:259 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Dispenser Equip Into Slot
ทำงานยังไง
เรียกต่อ: isTamed(). คืนค่า: equipmentSlot == EquipmentSlot.BODY && this.isTamed() || super.canDispenserEquipIntoSlot(equipmentSlot).
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
@Override
protected boolean canDispenserEquipIntoSlot(EquipmentSlot equipmentSlot) {
return super.canDispenserEquipIntoSlot(equipmentSlot);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#canEatGrass()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:612 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Eat Grass
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#canJump()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:947 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Jump
ทำงานยังไง
เรียกต่อ: isSaddled(). คืนค่า: this.isSaddled().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#canMate(Animal)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:868 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Mate
ทำงานยังไง
คืนค่า: false.
Parameters
Animal animal
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#canParent()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:873 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Parent
ทำงานยังไง
เรียกต่อ: isVehicle(), isPassenger(), isTamed(), isBaby(), getHealth(), getMaxHealth(), isInLove(). คืนค่า: !this.isVehicle() && !this.isPassenger() && this.isTamed() && !this.isBaby() && this.getHealth() >= this.getMaxHealth() && this.isInLove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#canPerformRearing()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:375 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Perform Rearing
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#causeFallDamage(float,float,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:301 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ causeFallDamage ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: playSound(), calculateFallDamage(), hurt(), isVehicle(), getIndirectPassengers(), playBlockFallSound(). มีจุด return อย่างน้อย 2 จุด.
Parameters
float ffloat gDamageSource damageSource
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
DamageSource damageSource = ...;
boolean result = instance.causeFallDamage(0.0F, 0.0F, damageSource);
net.minecraft.world.entity.animal.horse.AbstractHorse#containerChanged(Container)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:356 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ containerChanged ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSaddled(), syncSaddleToClients(), playSound(), getSaddleSoundEvent().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#createBaseHorseAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:425 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Base Horse Attributes
ทำงานยังไง
เรียกต่อ: createAnimalAttributes(), add().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#createInventory()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:331 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง Inventory
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: inventory. เรียกต่อ: getInventorySize(), removeListener(), min(), getContainerSize(), getItem(), isEmpty(), setItem(), copy(). สร้างออบเจ็กต์: SimpleContainer.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:173 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#doPlayerRide(Player)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:534 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doPlayerRide ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setEating(), setStanding(), level(), setYRot(), getYRot(), setXRot(), getXRot(), startRiding().
Parameters
Player player
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected void doPlayerRide(Player player) {
super.doPlayerRide(player);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#dropEquipment(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:558 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropEquipment ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getContainerSize(), getItem(), isEmpty(), has(), spawnAtLocation().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void dropEquipment(ServerLevel serverLevel) {
super.dropEquipment(serverLevel);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#equipBodyArmor(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:253 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ equipBodyArmor ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEquippableInSlot(), setBodyArmorItem(), consumeAndReturn().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
Player player = ...;
ItemStack itemStack = ...;
instance.equipBodyArmor(player, itemStack);
net.minecraft.world.entity.animal.horse.AbstractHorse#equipSaddle(ItemStack,SoundSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:248 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ equipSaddle ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: setItem().
Parameters
ItemStack itemStackSoundSource soundSource
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
ItemStack itemStack = ...;
SoundSource soundSource = ...;
instance.equipSaddle(itemStack, soundSource);
net.minecraft.world.entity.animal.horse.AbstractHorse#executeRidersJump(float,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:806 - Modifiers:
protected - Return:
void
คืออะไร
สั่งทำงาน Riders Jump
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasImpulse. เรียกต่อ: getJumpPower(), getDeltaMovement(), setDeltaMovement(), setIsJumping(), sin(), getYRot(), cos(), add().
Parameters
float fVec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected void executeRidersJump(float f, Vec3 vec3) {
super.executeRidersJump(f, vec3);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#fedFood(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:461 - Modifiers:
public - Return:
InteractionResult
คืออะไร
ดำเนินการ fedFood ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: handleEating(), consume(), level(). คืนค่า: !bl && !this.level().isClientSide ? InteractionResult.PASS : InteractionResult.SUCCESS_SERVER.
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
Player player = ...;
ItemStack itemStack = ...;
InteractionResult result = instance.fedFood(player, itemStack);
net.minecraft.world.entity.animal.horse.AbstractHorse#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1096 - Modifiers:
public - Return:
SpawnGroupData
คืออะไร
ดำเนินการ finalizeSpawn ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: AgeableMobGroupData(), randomizeAttributes(), getRandom(). สร้างออบเจ็กต์: AgeableMob.AgeableMobGroupData. คืนค่า: super.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData).
Parameters
ServerLevelAccessor serverLevelAccessorDifficultyInstance difficultyInstanceEntitySpawnReason entitySpawnReasonSpawnGroupData spawnGroupData
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);
net.minecraft.world.entity.animal.horse.AbstractHorse#followMommy(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:601 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ followMommy ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isBred(), isBaby(), isEating(), getNearestEntity(), getX(), getY(), getZ(), getBoundingBox().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void followMommy(ServerLevel serverLevel) {
super.followMommy(serverLevel);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#generateJumpStrength(DoubleSupplier)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:997 - Modifiers:
protected static - Return:
double
คืออะไร
ดำเนินการ generateJumpStrength ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: getAsDouble(). คืนค่า: 0.4F + doubleSupplier.getAsDouble() * 0.2 + doubleSupplier.getAsDouble() * 0.2 + doubleSupplier.getAsDouble() * 0.2.
Parameters
DoubleSupplier doubleSupplier
ตัวอย่างใช้งาน
DoubleSupplier doubleSupplier = ...;
@Override
protected double generateJumpStrength(DoubleSupplier doubleSupplier) {
return super.generateJumpStrength(doubleSupplier);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#generateMaxHealth(IntUnaryOperator)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:993 - Modifiers:
protected static - Return:
float
คืออะไร
ดำเนินการ generateMaxHealth ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: applyAsInt(). คืนค่า: 15.0F + intUnaryOperator.applyAsInt(8) + intUnaryOperator.applyAsInt(9).
Parameters
IntUnaryOperator intUnaryOperator
ตัวอย่างใช้งาน
IntUnaryOperator intUnaryOperator = ...;
@Override
protected float generateMaxHealth(IntUnaryOperator intUnaryOperator) {
return super.generateMaxHealth(intUnaryOperator);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#generateSpeed(DoubleSupplier)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1001 - Modifiers:
protected static - Return:
double
คืออะไร
ดำเนินการ generateSpeed ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: getAsDouble(). คืนค่า: (0.45F + doubleSupplier.getAsDouble() * 0.3 + doubleSupplier.getAsDouble() * 0.3 + doubleSupplier.getAsDouble() * 0.3) * 0.25.
Parameters
DoubleSupplier doubleSupplier
ตัวอย่างใช้งาน
DoubleSupplier doubleSupplier = ...;
@Override
protected double generateSpeed(DoubleSupplier doubleSupplier) {
return super.generateSpeed(doubleSupplier);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#getAmbientSoundInterval()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:449 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Ambient Sound Interval
ทำงานยังไง
คืนค่า: 400.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getAmbientStandInterval()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1113 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Ambient Stand Interval
ทำงานยังไง
เรียกต่อ: getAmbientSoundInterval(). คืนค่า: this.getAmbientSoundInterval().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getAmbientStandSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:730 - Modifiers:
public - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Stand Sound
ทำงานยังไง
เรียกต่อ: getAmbientSound(). คืนค่า: this.getAmbientSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getAngrySound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:384 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Angry Sound
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getBodyArmorAccess()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1123 - Modifiers:
public final - Return:
Container
คืออะไร
อ่านค่า Body Armor Access
ทำงานยังไง
คืนค่า: this.bodyArmorAccess.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:877 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
คืนค่า: null.
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.AbstractHorse#getControllingPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1037 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Controlling Passenger
ทำงานยังไง
เรียกต่อ: isSaddled(), getFirstPassenger(). คืนค่า: this.isSaddled() && this.getFirstPassenger() instanceof Player player ? player : super.getControllingPassenger().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getDismountLocationForPassenger(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1076 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Dismount Location For Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCollisionHorizontalEscapeVector(), getBbWidth(), getYRot(), getMainArm(), getDismountLocationInDirection(), position(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
LivingEntity livingEntity = ...;
Vec3 result = instance.getDismountLocationForPassenger(livingEntity);
net.minecraft.world.entity.animal.horse.AbstractHorse#getEatAnim(float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:917 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Eat Anim
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.eatAnimO, this.eatAnim).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getEatingSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:379 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Eating Sound
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getFlag(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:179 - Modifiers:
protected - Return:
boolean
คืออะไร
อ่านค่า Flag
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_ID_FLAGS) & i) != 0.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getInventoryColumns()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1127 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Inventory Columns
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getInventorySize()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:323 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Inventory Size
ทำงานยังไง
เรียกต่อ: getInventoryColumns(). คืนค่า: getInventorySize(this.getInventoryColumns()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getInventorySize(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:327 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Inventory Size
ทำงานยังไง
คืนค่า: i * 3 + 1.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getMaxSpawnClusterSize()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:435 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Spawn Cluster Size
ทำงานยังไง
คืนค่า: 6.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getMaxTemper()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:440 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Temper
ทำงานยังไง
คืนค่า: 100.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getMouthAnim(float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:925 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Mouth Anim
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.mouthAnimO, this.mouthAnim).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getOwnerUUID()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:196 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า Owner UUID
ทำงานยังไง
คืนค่า: this.owner.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getPassengerAttachmentPoint(Entity,EntityDimensions,float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1117 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Passenger Attachment Point
ทำงานยังไง
เรียกต่อ: add(), yRot(), getYRot(). สร้างออบเจ็กต์: Vec3.
Parameters
Entity entityEntityDimensions entityDimensionsfloat f
ตัวอย่างใช้งาน
Entity entity = ...;
EntityDimensions entityDimensions = ...;
@Override
protected Vec3 getPassengerAttachmentPoint(Entity entity, EntityDimensions entityDimensions, float f) {
return super.getPassengerAttachmentPoint(entity, entityDimensions, f);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#getRiddenInput(Player,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:786 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Ridden Input
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: playerJumpPendingScale. เรียกต่อ: onGround(), isStanding(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
Player playerVec3 vec3
ตัวอย่างใช้งาน
Player player = ...;
Vec3 vec3 = ...;
@Override
protected Vec3 getRiddenInput(Player player, Vec3 vec3) {
return super.getRiddenInput(player, vec3);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#getRiddenRotation(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:782 - Modifiers:
protected - Return:
Vec2
คืออะไร
อ่านค่า Ridden Rotation
ทำงานยังไง
เรียกต่อ: getXRot(), getYRot(). สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(livingEntity.getXRot() * 0.5F, livingEntity.getYRot()).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
@Override
protected Vec2 getRiddenRotation(LivingEntity livingEntity) {
return super.getRiddenRotation(livingEntity);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#getRiddenSpeed(Player)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:801 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Ridden Speed
ทำงานยังไง
เรียกต่อ: getAttributeValue(). คืนค่า: (float)this.getAttributeValue(Attributes.MOVEMENT_SPEED).
Parameters
Player player
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected float getRiddenSpeed(Player player) {
return super.getRiddenSpeed(player);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1010 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), getItem(), set(), isEmpty(), is(), setItem(), syncSaddleToClients(), getContainerSize(). สร้างออบเจ็กต์: SlotAccess. มีจุด return อย่างน้อย 4 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getSoundVolume()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:444 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Sound Volume
ทำงานยังไง
คืนค่า: 0.8F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getStandAnim(float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:921 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Stand Anim
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.standAnimO, this.standAnim).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#getTemper()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:269 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Temper
ทำงานยังไง
คืนค่า: this.temper.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#handleEating(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:470 - Modifiers:
protected - Return:
boolean
คืออะไร
จัดการ Eating
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), asItem(), level(), isTamed(), getAge(), isInLove(), setInLove(), getHealth(). คืนค่า: bl.
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
Player player = ...;
ItemStack itemStack = ...;
@Override
protected boolean handleEating(Player player, ItemStack itemStack) {
return super.handleEating(player, itemStack);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:974 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: spawnTamingParticles().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#handleLeashAtDistance(Entity,float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:218 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการ Leash At Distance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEating(), setEating(). คืนค่า: true.
Parameters
Entity entityfloat f
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
Entity entity = ...;
boolean result = instance.handleLeashAtDistance(entity, 0.0F);
net.minecraft.world.entity.animal.horse.AbstractHorse#handleStartJump(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:952 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Start Jump
ทำงานยังไง
แก้ state: allowStandSliding. เรียกต่อ: standIfPossible(), playJumpSound().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#handleStopJump()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:959 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Stop Jump
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#hasInventoryChanged(Container)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1109 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Inventory Changed
ทำงานยังไง
คืนค่า: this.inventory != container.
Parameters
Container container
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
Container container = ...;
boolean result = instance.hasInventoryChanged(container);
net.minecraft.world.entity.animal.horse.AbstractHorse#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:365 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: nextInt(), standIfPossible(). คืนค่า: bl.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.animal.horse.AbstractHorse#isBred()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:235 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Bred
ทำงานยังไง
เรียกต่อ: getFlag(). คืนค่า: this.getFlag(8).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isEating()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:227 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Eating
ทำงานยังไง
เรียกต่อ: getFlag(). คืนค่า: this.getFlag(16).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isFood(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:549 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Food
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: itemStack.is(ItemTags.HORSE_FOOD).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
ItemStack itemStack = ...;
boolean result = instance.isFood(itemStack);
net.minecraft.world.entity.animal.horse.AbstractHorse#isImmobile()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:544 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Immobile
ทำงานยังไง
เรียกต่อ: isVehicle(), isSaddled(), isEating(), isStanding(). คืนค่า: super.isImmobile() && this.isVehicle() && this.isSaddled() || this.isEating() || this.isStanding().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isJumping()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:206 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Jumping
ทำงานยังไง
คืนค่า: this.isJumping.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isPushable()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:283 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pushable
ทำงานยังไง
เรียกต่อ: isVehicle(). คืนค่า: !this.isVehicle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isSaddleable()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:243 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Saddleable
ทำงานยังไง
เรียกต่อ: isAlive(), isBaby(), isTamed(). คืนค่า: this.isAlive() && !this.isBaby() && this.isTamed().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isSaddled()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:264 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Saddled
ทำงานยังไง
เรียกต่อ: getFlag(). คืนค่า: this.getFlag(4).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isStanding()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:231 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Standing
ทำงานยังไง
เรียกต่อ: getFlag(). คืนค่า: this.getFlag(32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#isTamed()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:192 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Tamed
ทำงานยังไง
เรียกต่อ: getFlag(). คืนค่า: this.getFlag(2).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#makeMad()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:742 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Mad
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isStanding(), standIfPossible(), makeSound(), getAngrySound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#mobInteract(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:683 - Modifiers:
public - Return:
InteractionResult
คืออะไร
ดำเนินการ mobInteract ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isVehicle(), isBaby(), isTamed(), isSecondaryUseActive(), openCustomInventoryScreen(), getItemInHand(), isEmpty(), interactLivingEntity(). มีจุด return อย่างน้อย 5 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.mobInteract(player, interactionHand);
net.minecraft.world.entity.animal.horse.AbstractHorse#modifyTemper(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:277 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ modifyTemper ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: clamp(), getTemper(), getMaxTemper(), setTemper(). คืนค่า: j.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#onClimbable()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1005 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการเหตุการณ์ Climbable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#onPlayerJump(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:929 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Player Jump
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: allowStandSliding, playerJumpPendingScale. เรียกต่อ: isSaddled(), standIfPossible().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#openCustomInventoryScreen(Player)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:454 - Modifiers:
public - Return:
void
คืออะไร
เปิด Custom Inventory Screen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), isVehicle(), hasPassenger(), isTamed(), openHorseInventory().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#playGallopSound(SoundType)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:421 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playGallopSound ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: playSound(), getVolume(), getPitch().
Parameters
SoundType soundType
ตัวอย่างใช้งาน
SoundType soundType = ...;
@Override
protected void playGallopSound(SoundType soundType) {
super.playGallopSound(soundType);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#playJumpSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:819 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playJumpSound ตาม implementation ของ AbstractHorse
ทำงานยังไง
เรียกต่อ: playSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#playStepSound(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:389 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playStepSound ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: gallopSoundCounter. เรียกต่อ: liquid(), level(), getBlockState(), above(), getSoundType(), is(), isVehicle(), playGallopSound().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void playStepSound(BlockPos blockPos, BlockState blockState) {
super.playStepSound(blockPos, blockState);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#positionRider(Entity,Entity.MoveFunction)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:985 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ positionRider ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
Entity entityEntity.MoveFunction moveFunction
ตัวอย่างใช้งาน
Entity entity = ...;
Entity.MoveFunction moveFunction = ...;
@Override
protected void positionRider(Entity entity, Entity.MoveFunction moveFunction) {
super.positionRider(entity, moveFunction);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#randomizeAttributes(RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:1093 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ randomizeAttributes ตาม implementation ของ AbstractHorse
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected void randomizeAttributes(RandomSource randomSource) {
super.randomizeAttributes(randomSource);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:839 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setEating(), getBoolean(), setBred(), setTemper(), getInt(), setTamed(), hasUUID(), getUUID().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
AbstractHorse instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.AbstractHorse#registerGoals()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:152 - Modifiers:
protected - Return:
void
คืออะไร
ลงทะเบียน Goals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addGoal(), canPerformRearing(), addBehaviourGoals(). สร้างออบเจ็กต์: PanicGoal, RunAroundLikeCrazyGoal, BreedGoal, FollowParentGoal.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setBred(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:239 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Bred
ทำงานยังไง
เรียกต่อ: setFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setEating(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:718 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Eating
ทำงานยังไง
เรียกต่อ: setFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setFlag(int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:183 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Flag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), set().
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setIsJumping(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:214 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Is Jumping
ทำงานยังไง
แก้ state: isJumping.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setOffspringAttributes(AgeableMob,AbstractHorse)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:883 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Offspring Attributes
ทำงานยังไง
เรียกต่อ: setOffspringAttribute().
Parameters
AgeableMob ageableMobAbstractHorse abstractHorse
ตัวอย่างใช้งาน
AgeableMob ageableMob = ...;
AbstractHorse abstractHorse = ...;
@Override
protected void setOffspringAttributes(AgeableMob ageableMob, AbstractHorse abstractHorse) {
super.setOffspringAttributes(ageableMob, abstractHorse);
}
net.minecraft.world.entity.animal.horse.AbstractHorse#setOwnerUUID(UUID)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:202 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Owner UUID
ทำงานยังไง
แก้ state: owner.
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setStanding(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:722 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Standing
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setEating(), setFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setTamed(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:210 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Tamed
ทำงานยังไง
เรียกต่อ: setFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#setTemper(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:273 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Temper
ทำงานยังไง
แก้ state: temper.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#spawnTamingParticles(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:963 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง entity ในโลก Taming Particles
ทำงานยังไง
มีการวนลูป. เรียกต่อ: nextGaussian(), level(), addParticle(), getRandomX(), getRandomY(), getRandomZ().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#standIfPossible()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:735 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ standIfPossible ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: standCounter. เรียกต่อ: canPerformRearing(), isEffectiveAi(), setStanding().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#syncSaddleToClients()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:350 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ syncSaddleToClients ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), setFlag(), getItem(), isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#tameWithName(Player)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:749 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ tameWithName ตาม implementation ของ AbstractHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setOwnerUUID(), getUUID(), setTamed(), trigger(), level(), broadcastEntityEvent(). คืนค่า: true.
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#tick()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:616 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: mouthCounter, standCounter, tailCounter, sprintCounter, eatAnimO, eatAnim. เรียกต่อ: setFlag(), isEffectiveAi(), setStanding(), isEating(), isStanding(), getFlag().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.AbstractHorse#tickRidden(Player,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/AbstractHorse.java:760 - Modifiers:
protected - Return:
void
คืออะไร
ประมวลผล tick Ridden
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: yRotO, yBodyRot, yHeadRot, gallopSoundCounter, playerJumpPendingScale. เรียกต่อ: getRiddenRotation(), setRot(), getYRot(), isControlledByLocalInstance(), onGround(), setIsJumping(), isJumping(), executeRidersJump().
Parameters
Player playerVec3 vec3
ตัวอย่างใช้งาน
Player player = ...;
Vec3 vec3 = ...;
@Override
protected void tickRidden(Player player, Vec3 vec3) {
super.tickRidden(player, vec3);
}
Donkey
- Full name:
net.minecraft.world.entity.animal.horse.Donkey - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Donkey.java - Type:
class - Modifiers:
public - Extends:
AbstractChestedHorse
net.minecraft.world.entity.animal.horse.Donkey#canMate(Animal)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:45 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Mate
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canParent(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Animal animal
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Donkey#Donkey(EntityType<? extends Donkey>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Donkey ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends Donkey> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends Donkey> entityType = ...;
Level level = ...;
Donkey instance = new Donkey(entityType, level);
net.minecraft.world.entity.animal.horse.Donkey#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:19 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: SoundEvents.DONKEY_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Donkey#getAngrySound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:24 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Angry Sound
ทำงานยังไง
คืนค่า: SoundEvents.DONKEY_ANGRY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Donkey#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:59 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(), setOffspringAttributes(). คืนค่า: abstractHorse.
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
Donkey instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.Donkey#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:29 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.DONKEY_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Donkey#getEatingSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:34 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Eating Sound
ทำงานยังไง
คืนค่า: SoundEvents.DONKEY_EAT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Donkey#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:40 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.DONKEY_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.animal.horse.Donkey#playJumpSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Donkey.java:54 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playJumpSound ตาม implementation ของ Donkey
ทำงานยังไง
เรียกต่อ: playSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Horse
- Full name:
net.minecraft.world.entity.animal.horse.Horse - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Horse.java - Type:
class - Modifiers:
public - Extends:
AbstractHorse - Implements:
VariantHolder<Variant>
net.minecraft.world.entity.animal.horse.Horse#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:59 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putInt(), getTypeVariant().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#canMate(Animal)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:151 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Mate
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canParent(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Animal animal
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#canUseSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:202 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use Slot
ทำงานยังไง
คืนค่า: true.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
Horse instance = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.canUseSlot(equipmentSlot);
net.minecraft.world.entity.animal.horse.Horse#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:53 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Horse
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.animal.horse.Horse#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:212 - Modifiers:
public - Return:
SpawnGroupData
คืออะไร
ดำเนินการ finalizeSpawn ตาม implementation ของ Horse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRandom(), values(), HorseGroupData(), setVariantAndMarkings(). สร้างออบเจ็กต์: Horse.HorseGroupData. คืนค่า: super.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData).
Parameters
ServerLevelAccessor serverLevelAccessorDifficultyInstance difficultyInstanceEntitySpawnReason entitySpawnReasonSpawnGroupData spawnGroupData
ตัวอย่างใช้งาน
Horse instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);
net.minecraft.world.entity.animal.horse.Horse#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:103 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: SoundEvents.HORSE_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#getAngrySound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:124 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Angry Sound
ทำงานยังไง
คืนค่า: SoundEvents.HORSE_ANGRY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:160 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(), setOffspringAttributes(), nextInt(), getVariant(), getRandom(), values(), getMarkings(), setVariantAndMarkings(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
Horse instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.Horse#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:108 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.HORSE_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#getDefaultDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:230 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Default Dimensions
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: this.isBaby() ? BABY_DIMENSIONS : super.getDefaultDimensions(pose).
Parameters
Pose pose
ตัวอย่างใช้งาน
Horse instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDefaultDimensions(pose);
net.minecraft.world.entity.animal.horse.Horse#getEatingSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:113 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Eating Sound
ทำงานยังไง
คืนค่า: SoundEvents.HORSE_EAT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:119 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.HORSE_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.animal.horse.Horse#getMarkings()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:91 - Modifiers:
public - Return:
Markings
คืออะไร
อ่านค่า Markings
ทำงานยังไง
เรียกต่อ: byId(), getTypeVariant(). คืนค่า: Markings.byId((this.getTypeVariant() & 0xFF00) >> 8).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#getVariant()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:83 - Modifiers:
public - Return:
Variant
คืออะไร
อ่านค่า Variant
ทำงานยังไง
เรียกต่อ: byId(), getTypeVariant(). คืนค่า: Variant.byId(this.getTypeVariant() & 0xFF).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#Horse(EntityType<? extends Horse>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:42 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Horse ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends Horse> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends Horse> entityType = ...;
Level level = ...;
Horse instance = new Horse(entityType, level);
net.minecraft.world.entity.animal.horse.Horse#hurtArmor(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:207 - Modifiers:
protected - Return:
void
คืออะไร
ประมวลผลความเสียหาย Armor
ทำงานยังไง
เรียกต่อ: doHurtEquipment().
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected void hurtArmor(DamageSource damageSource, float f) {
super.hurtArmor(damageSource, f);
}
net.minecraft.world.entity.animal.horse.Horse#mobInteract(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:129 - Modifiers:
public - Return:
InteractionResult
คืออะไร
ดำเนินการ mobInteract ตาม implementation ของ Horse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isBaby(), isTamed(), isSecondaryUseActive(), isVehicle(), getItemInHand(), isEmpty(), isFood(), fedFood(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
Horse instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.mobInteract(player, interactionHand);
net.minecraft.world.entity.animal.horse.Horse#playGallopSound(SoundType)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:95 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playGallopSound ตาม implementation ของ Horse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: nextInt(), playSound(), getVolume(), getPitch().
Parameters
SoundType soundType
ตัวอย่างใช้งาน
SoundType soundType = ...;
@Override
protected void playGallopSound(SoundType soundType) {
super.playGallopSound(soundType);
}
net.minecraft.world.entity.animal.horse.Horse#randomizeAttributes(RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:46 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ randomizeAttributes ตาม implementation ของ Horse
ทำงานยังไง
เรียกต่อ: getAttribute(), setBaseValue(), generateMaxHealth(), generateSpeed(), generateJumpStrength().
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected void randomizeAttributes(RandomSource randomSource) {
super.randomizeAttributes(randomSource);
}
net.minecraft.world.entity.animal.horse.Horse#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:65 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: setTypeVariant(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Horse#setVariant(Variant)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:87 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Variant
ทำงานยังไง
เรียกต่อ: setTypeVariant(), getId(), getTypeVariant().
Parameters
Variant variant
ตัวอย่างใช้งาน
Horse$HorseGroupData
- Full name:
net.minecraft.world.entity.animal.horse.Horse$HorseGroupData - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Horse.java - Type:
class - Modifiers:
public static - Extends:
AgeableMob.AgeableMobGroupData
net.minecraft.world.entity.animal.horse.Horse$HorseGroupData#HorseGroupData(Variant)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Horse.java:238 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Horse.HorseGroupData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: variant.
Parameters
Variant variant
ตัวอย่างใช้งาน
Llama
- Full name:
net.minecraft.world.entity.animal.horse.Llama - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Llama.java - Type:
class - Modifiers:
public - Extends:
AbstractChestedHorse - Implements:
VariantHolder<Llama.Variant>,RangedAttackMob
net.minecraft.world.entity.animal.horse.Llama#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:98 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putInt(), getVariant(), getStrength().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#canEatGrass()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:416 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Eat Grass
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#canMate(Animal)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:299 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Mate
ทำงานยังไง
เรียกต่อ: canParent(). คืนค่า: animal != this && animal instanceof Llama && this.canParent() && ((Llama)animal).canParent().
Parameters
Animal animal
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#canPerformRearing()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:238 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Perform Rearing
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#canUseSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:284 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use Slot
ทำงานยังไง
คืนค่า: true.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
Llama instance = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.canUseSlot(equipmentSlot);
net.minecraft.world.entity.animal.horse.Llama#causeFallDamage(float,float,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:358 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ causeFallDamage ตาม implementation ของ Llama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: calculateFallDamage(), hurt(), isVehicle(), getIndirectPassengers(), playBlockFallSound(). มีจุด return อย่างน้อย 2 จุด.
Parameters
float ffloat gDamageSource damageSource
ตัวอย่างใช้งาน
Llama instance = ...;
DamageSource damageSource = ...;
boolean result = instance.causeFallDamage(0.0F, 0.0F, damageSource);
net.minecraft.world.entity.animal.horse.Llama#createAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:129 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Attributes
ทำงานยังไง
เรียกต่อ: createBaseChestedHorseAttributes(). คืนค่า: createBaseChestedHorseAttributes().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:133 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Llama
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.animal.horse.Llama#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:219 - Modifiers:
public - Return:
SpawnGroupData
คืออะไร
ดำเนินการ finalizeSpawn ตาม implementation ของ Llama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRandom(), setRandomStrength(), values(), LlamaGroupData(), setVariant(). สร้างออบเจ็กต์: Llama.LlamaGroupData. คืนค่า: super.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData).
Parameters
ServerLevelAccessor serverLevelAccessorDifficultyInstance difficultyInstanceEntitySpawnReason entitySpawnReasonSpawnGroupData spawnGroupData
ตัวอย่างใช้งาน
Llama instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);
net.minecraft.world.entity.animal.horse.Llama#followLeashSpeed()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:404 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ followLeashSpeed ตาม implementation ของ Llama
ทำงานยังไง
คืนค่า: 2.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#followMommy(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:409 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ followMommy ตาม implementation ของ Llama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: inCaravan(), isBaby().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void followMommy(ServerLevel serverLevel) {
super.followMommy(serverLevel);
}
net.minecraft.world.entity.animal.horse.Llama#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:248 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: SoundEvents.LLAMA_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getAngrySound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:243 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Angry Sound
ทำงานยังไง
คืนค่า: SoundEvents.LLAMA_ANGRY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:304 - Modifiers:
public - Return:
Llama
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: makeNewLlama(), setOffspringAttributes(), nextInt(), max(), getStrength(), nextFloat(), setStrength(), setVariant(). คืนค่า: llama.
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
Llama instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
Llama result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.Llama#getCaravanHead()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:399 - Modifiers:
public - Return:
Llama
คืออะไร
อ่านค่า Caravan Head
ทำงานยังไง
คืนค่า: this.caravanHead.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:258 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.LLAMA_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getDefaultDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:431 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Default Dimensions
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: this.isBaby() ? BABY_DIMENSIONS : super.getDefaultDimensions(pose).
Parameters
Pose pose
ตัวอย่างใช้งาน
Llama instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDefaultDimensions(pose);
net.minecraft.world.entity.animal.horse.Llama#getEatingSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:263 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Eating Sound
ทำงานยังไง
คืนค่า: SoundEvents.LLAMA_EAT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:253 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.LLAMA_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.animal.horse.Llama#getInventoryColumns()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:279 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Inventory Columns
ทำงานยังไง
เรียกต่อ: hasChest(), getStrength(). คืนค่า: this.hasChest() ? this.getStrength() : 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getLeashOffset()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:426 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Leash Offset
ทำงานยังไง
เรียกต่อ: getEyeHeight(), getBbWidth(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(0.0, 0.75 * this.getEyeHeight(), this.getBbWidth() * 0.5).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getMaxTemper()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:294 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Temper
ทำงานยังไง
คืนค่า: 30.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getPassengerAttachmentPoint(Entity,EntityDimensions,float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:436 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Passenger Attachment Point
ทำงานยังไง
เรียกต่อ: getDefaultPassengerAttachmentPoint(), attachments(). คืนค่า: getDefaultPassengerAttachmentPoint(this, entity, entityDimensions.attachments()).
Parameters
Entity entityEntityDimensions entityDimensionsfloat f
ตัวอย่างใช้งาน
Entity entity = ...;
EntityDimensions entityDimensions = ...;
@Override
protected Vec3 getPassengerAttachmentPoint(Entity entity, EntityDimensions entityDimensions, float f) {
return super.getPassengerAttachmentPoint(entity, entityDimensions, f);
}
net.minecraft.world.entity.animal.horse.Llama#getStrength()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:94 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Strength
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_STRENGTH_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#getVariant()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:140 - Modifiers:
public - Return:
Llama.Variant
คืออะไร
อ่านค่า Variant
ทำงานยังไง
เรียกต่อ: byId(), get(). คืนค่า: Llama.Variant.byId(this.entityData.get(DATA_VARIANT_ID)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#handleEating(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:153 - Modifiers:
protected - Return:
boolean
คืออะไร
จัดการ Eating
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), asItem(), isTamed(), getAge(), canFallInLove(), setInLove(), getHealth(), getMaxHealth(). คืนค่า: bl.
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
Player player = ...;
ItemStack itemStack = ...;
@Override
protected boolean handleEating(Player player, ItemStack itemStack) {
return super.handleEating(player, itemStack);
}
net.minecraft.world.entity.animal.horse.Llama#hasCaravanTail()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:391 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Caravan Tail
ทำงานยังไง
คืนค่า: this.caravanTail != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#inCaravan()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:395 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ inCaravan ตาม implementation ของ Llama
ทำงานยังไง
คืนค่า: this.caravanHead != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#isFood(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:148 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Food
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: itemStack.is(ItemTags.LLAMA_FOOD).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#isImmobile()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:214 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Immobile
ทำงานยังไง
เรียกต่อ: isDeadOrDying(), isEating(). คืนค่า: this.isDeadOrDying() || this.isEating().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#isSaddleable()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:289 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Saddleable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#isTraderLlama()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:81 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Trader Llama
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#joinCaravan(Llama)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:386 - Modifiers:
public - Return:
void
คืออะไร
รวม/เข้าร่วม Caravan
ทำงานยังไง
แก้ state: caravanHead.
Parameters
Llama llama
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#leaveCaravan()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:378 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ leaveCaravan ตาม implementation ของ Llama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: caravanHead.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#Llama(EntityType<? extends Llama>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:76 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Llama ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getNavigation(), setRequiredPathLength().
Parameters
EntityType<? extends Llama> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends Llama> entityType = ...;
Level level = ...;
Llama instance = new Llama(entityType, level);
net.minecraft.world.entity.animal.horse.Llama#makeNewLlama()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:322 - Modifiers:
protected - Return:
Llama
คืออะไร
สร้าง New Llama
ทำงานยังไง
เรียกต่อ: create(), level(). คืนค่า: EntityType.LLAMA.create(this.level(), EntitySpawnReason.BREEDING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#performRangedAttack(LivingEntity,float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:421 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ performRangedAttack ตาม implementation ของ Llama
ทำงานยังไง
เรียกต่อ: spit().
Parameters
LivingEntity livingEntityfloat f
ตัวอย่างใช้งาน
Llama instance = ...;
LivingEntity livingEntity = ...;
instance.performRangedAttack(livingEntity, 0.0F);
net.minecraft.world.entity.animal.horse.Llama#playChestEquipsSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:274 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playChestEquipsSound ตาม implementation ของ Llama
ทำงานยังไง
เรียกต่อ: playSound(), nextFloat().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#playStepSound(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:269 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playStepSound ตาม implementation ของ Llama
ทำงานยังไง
เรียกต่อ: playSound().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void playStepSound(BlockPos blockPos, BlockState blockState) {
super.playStepSound(blockPos, blockState);
}
net.minecraft.world.entity.animal.horse.Llama#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:105 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: setStrength(), getInt(), setVariant(), byId().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#registerGoals()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:112 - Modifiers:
protected - Return:
void
คืออะไร
ลงทะเบียน Goals
ทำงานยังไง
เรียกต่อ: addGoal(), is(), LlamaHurtByTargetGoal(), LlamaAttackWolfGoal(). สร้างออบเจ็กต์: FloatGoal, RunAroundLikeCrazyGoal, LlamaFollowCaravanGoal, RangedAttackGoal.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama#setVariant(Llama.Variant)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:144 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Variant
ทำงานยังไง
เรียกต่อ: set().
Parameters
Llama.Variant variant
ตัวอย่างใช้งาน
Llama$Variant
- Full name:
net.minecraft.world.entity.animal.horse.Llama$Variant - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Llama.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.animal.horse.Llama$Variant#byId(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:497 - Modifiers:
public static - Return:
Llama.Variant
คืออะไร
ดำเนินการ byId ตาม implementation ของ Llama$Variant
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: BY_ID.apply(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama$Variant#getId()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:493 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Llama$Variant#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Llama.java:501 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Markings
- Full name:
net.minecraft.world.entity.animal.horse.Markings - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Markings.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.animal.horse.Markings#byId(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Markings.java:24 - Modifiers:
public static - Return:
Markings
คืออะไร
ดำเนินการ byId ตาม implementation ของ Markings
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: BY_ID.apply(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Markings#getId()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Markings.java:20 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Mule
- Full name:
net.minecraft.world.entity.animal.horse.Mule - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Mule.java - Type:
class - Modifiers:
public - Extends:
AbstractChestedHorse
net.minecraft.world.entity.animal.horse.Mule#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:18 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: SoundEvents.MULE_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Mule#getAngrySound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:23 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Angry Sound
ทำงานยังไง
คืนค่า: SoundEvents.MULE_ANGRY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Mule#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:54 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: EntityType.MULE.create(serverLevel, EntitySpawnReason.BREEDING).
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
Mule instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.Mule#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:28 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.MULE_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Mule#getEatingSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:33 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Eating Sound
ทำงานยังไง
คืนค่า: SoundEvents.MULE_EAT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Mule#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:39 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.MULE_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.animal.horse.Mule#Mule(EntityType<? extends Mule>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Mule ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends Mule> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends Mule> entityType = ...;
Level level = ...;
Mule instance = new Mule(entityType, level);
net.minecraft.world.entity.animal.horse.Mule#playChestEquipsSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:49 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playChestEquipsSound ตาม implementation ของ Mule
ทำงานยังไง
เรียกต่อ: playSound(), nextFloat().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Mule#playJumpSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Mule.java:44 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playJumpSound ตาม implementation ของ Mule
ทำงานยังไง
เรียกต่อ: playSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SkeletonHorse
- Full name:
net.minecraft.world.entity.animal.horse.SkeletonHorse - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/SkeletonHorse.java - Type:
class - Modifiers:
public - Extends:
AbstractHorse
net.minecraft.world.entity.animal.horse.SkeletonHorse#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:129 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putBoolean(), isTrap(), putInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
SkeletonHorse instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.SkeletonHorse#addBehaviourGoals()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:59 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Behaviour Goals
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:121 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ SkeletonHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: trapTime. เรียกต่อ: isTrap(), discard().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#checkSkeletonHorseSpawnRules(EntityType<? extends Animal>,LevelAccessor,EntitySpawnReason,BlockPos,RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:46 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบ Skeleton Horse Spawn Rules
ทำงานยังไง
เรียกต่อ: isSpawner(), checkAnimalSpawnRules(), ignoresLightRequirements(), isBrightEnoughToSpawn().
Parameters
EntityType<? extends Animal> entityTypeLevelAccessor levelAccessorEntitySpawnReason entitySpawnReasonBlockPos blockPosRandomSource randomSource
ตัวอย่างใช้งาน
EntityType<? extends Animal> entityType = ...;
LevelAccessor levelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = SkeletonHorse.checkSkeletonHorseSpawnRules(entityType, levelAccessor, entitySpawnReason, blockPos, randomSource);
net.minecraft.world.entity.animal.horse.SkeletonHorse#createAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:42 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Attributes
ทำงานยังไง
เรียกต่อ: createBaseHorseAttributes(), add(). คืนค่า: createBaseHorseAttributes().add(Attributes.MAX_HEALTH, 15.0).add(Attributes.MOVEMENT_SPEED, 0.2F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:63 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
เรียกต่อ: isEyeInFluid(). คืนค่า: this.isEyeInFluid(FluidTags.WATER) ? SoundEvents.SKELETON_HORSE_AMBIENT_WATER : SoundEvents.SKELETON_HORSE_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:163 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: EntityType.SKELETON_HORSE.create(serverLevel, EntitySpawnReason.BREEDING).
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
SkeletonHorse instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.SkeletonHorse#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:68 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.SKELETON_HORSE_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#getDefaultDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:116 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Default Dimensions
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: this.isBaby() ? BABY_DIMENSIONS : super.getDefaultDimensions(pose).
Parameters
Pose pose
ตัวอย่างใช้งาน
SkeletonHorse instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDefaultDimensions(pose);
net.minecraft.world.entity.animal.horse.SkeletonHorse#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:73 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.SKELETON_HORSE_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.animal.horse.SkeletonHorse#getSwimSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:78 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Swim Sound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: gallopSoundCounter. เรียกต่อ: onGround(), isVehicle(). มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#getWaterSlowDown()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:143 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Water Slow Down
ทำงานยังไง
คืนค่า: 0.96F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#isTrap()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:148 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Trap
ทำงานยังไง
คืนค่า: this.isTrap.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#mobInteract(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:169 - Modifiers:
public - Return:
InteractionResult
คืออะไร
ดำเนินการ mobInteract ตาม implementation ของ SkeletonHorse
ทำงานยังไง
เรียกต่อ: isTamed(). คืนค่า: !this.isTamed() ? InteractionResult.PASS : super.mobInteract(player, interactionHand).
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
SkeletonHorse instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.mobInteract(player, interactionHand);
net.minecraft.world.entity.animal.horse.SkeletonHorse#playJumpSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:107 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playJumpSound ตาม implementation ของ SkeletonHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isInWater(), playSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#playSwimSound(float)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:98 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playSwimSound ตาม implementation ของ SkeletonHorse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: onGround(), min().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#randomizeAttributes(RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:54 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ randomizeAttributes ตาม implementation ของ SkeletonHorse
ทำงานยังไง
เรียกต่อ: getAttribute(), setBaseValue(), generateJumpStrength().
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected void randomizeAttributes(RandomSource randomSource) {
super.randomizeAttributes(randomSource);
}
net.minecraft.world.entity.animal.horse.SkeletonHorse#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:136 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: trapTime. เรียกต่อ: setTrap(), getBoolean(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
SkeletonHorse instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.SkeletonHorse#setTrap(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:152 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Trap
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: isTrap. เรียกต่อ: addGoal(), removeGoal().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonHorse#SkeletonHorse(EntityType<? extends SkeletonHorse>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonHorse.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkeletonHorse ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends SkeletonHorse> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends SkeletonHorse> entityType = ...;
Level level = ...;
SkeletonHorse instance = new SkeletonHorse(entityType, level);
SkeletonTrapGoal
- Full name:
net.minecraft.world.entity.animal.horse.SkeletonTrapGoal - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/SkeletonTrapGoal.java - Type:
class - Modifiers:
public - Extends:
Goal
net.minecraft.world.entity.animal.horse.SkeletonTrapGoal#canUse()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonTrapGoal.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use
ทำงานยังไง
เรียกต่อ: level(), hasNearbyAlivePlayer(), getX(), getY(), getZ(). คืนค่า: this.horse.level().hasNearbyAlivePlayer(this.horse.getX(), this.horse.getY(), this.horse.getZ(), 10.0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonTrapGoal#SkeletonTrapGoal(SkeletonHorse)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonTrapGoal.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkeletonTrapGoal ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: horse.
Parameters
SkeletonHorse skeletonHorse
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.SkeletonTrapGoal#tick()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/SkeletonTrapGoal.java:31 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), getCurrentDifficultyAt(), blockPosition(), setTrap(), setTamed(), setAge(), create(), moveTo().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TraderLlama
- Full name:
net.minecraft.world.entity.animal.horse.TraderLlama - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/TraderLlama.java - Type:
class - Modifiers:
public - Extends:
Llama
net.minecraft.world.entity.animal.horse.TraderLlama#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:43 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
TraderLlama instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.TraderLlama#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:81 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ TraderLlama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), maybeDespawn().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.TraderLlama#doPlayerRide(Player)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:73 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doPlayerRide ตาม implementation ของ TraderLlama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLeashHolder().
Parameters
Player player
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected void doPlayerRide(Player player) {
super.doPlayerRide(player);
}
net.minecraft.world.entity.animal.horse.TraderLlama#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:111 - Modifiers:
public - Return:
SpawnGroupData
คืออะไร
ดำเนินการ finalizeSpawn ตาม implementation ของ TraderLlama
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setAge(), AgeableMobGroupData(). สร้างออบเจ็กต์: AgeableMob.AgeableMobGroupData. คืนค่า: super.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData).
Parameters
ServerLevelAccessor serverLevelAccessorDifficultyInstance difficultyInstanceEntitySpawnReason entitySpawnReasonSpawnGroupData spawnGroupData
ตัวอย่างใช้งาน
TraderLlama instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);
net.minecraft.world.entity.animal.horse.TraderLlama#isTraderLlama()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:32 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Trader Llama
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.TraderLlama#makeNewLlama()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:37 - Modifiers:
protected - Return:
Llama
คืออะไร
สร้าง New Llama
ทำงานยังไง
เรียกต่อ: create(), level(). คืนค่า: EntityType.TRADER_LLAMA.create(this.level(), EntitySpawnReason.BREEDING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.TraderLlama#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:49 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: despawnDelay. เรียกต่อ: contains(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
TraderLlama instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.animal.horse.TraderLlama#registerGoals()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:57 - Modifiers:
protected - Return:
void
คืออะไร
ลงทะเบียน Goals
ทำงานยังไง
เรียกต่อ: addGoal(), TraderLlamaDefendWanderingTraderGoal(), getType(). สร้างออบเจ็กต์: PanicGoal, TraderLlama.TraderLlamaDefendWanderingTraderGoal, NearestAttackableTargetGoal<>.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.TraderLlama#setDespawnDelay(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:69 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Despawn Delay
ทำงานยังไง
แก้ state: despawnDelay.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.TraderLlama#TraderLlama(EntityType<? extends TraderLlama>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TraderLlama ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends TraderLlama> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends TraderLlama> entityType = ...;
Level level = ...;
TraderLlama instance = new TraderLlama(entityType, level);
TraderLlama$TraderLlamaDefendWanderingTraderGoal
- Full name:
net.minecraft.world.entity.animal.horse.TraderLlama$TraderLlamaDefendWanderingTraderGoal - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/TraderLlama.java - Type:
class - Modifiers:
protected static - Extends:
TargetGoal
net.minecraft.world.entity.animal.horse.TraderLlama$TraderLlamaDefendWanderingTraderGoal#canUse()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:138 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: ownerLastHurtBy. เรียกต่อ: isLeashed(), getLeashHolder(), getLastHurtByMob(), getLastHurtByMobTimestamp(), canAttack(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TraderLlama.TraderLlamaDefendWanderingTraderGoal instance = ...;
boolean result = instance.canUse();
net.minecraft.world.entity.animal.horse.TraderLlama$TraderLlamaDefendWanderingTraderGoal#start()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:151 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม start
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: timestamp. เรียกต่อ: setTarget(), getLeashHolder(), getLastHurtByMobTimestamp().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.TraderLlama$TraderLlamaDefendWanderingTraderGoal#TraderLlamaDefendWanderingTraderGoal(Llama)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/TraderLlama.java:132 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TraderLlama.TraderLlamaDefendWanderingTraderGoal ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: llama. เรียกต่อ: setFlags(), of().
Parameters
Llama llama
ตัวอย่างใช้งาน
Llama llama = ...;
TraderLlama.TraderLlamaDefendWanderingTraderGoal instance = new TraderLlama.TraderLlamaDefendWanderingTraderGoal(llama);
Variant
- Full name:
net.minecraft.world.entity.animal.horse.Variant - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/Variant.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.animal.horse.Variant#byId(int)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Variant.java:31 - Modifiers:
public static - Return:
Variant
คืออะไร
ดำเนินการ byId ตาม implementation ของ Variant
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: BY_ID.apply(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Variant#getId()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Variant.java:27 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.Variant#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/Variant.java:35 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ZombieHorse
- Full name:
net.minecraft.world.entity.animal.horse.ZombieHorse - Package:
net.minecraft.world.entity.animal.horse - Source:
common—net/minecraft/world/entity/animal/horse/ZombieHorse.java - Type:
class - Modifiers:
public - Extends:
AbstractHorse
net.minecraft.world.entity.animal.horse.ZombieHorse#addBehaviourGoals()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:79 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Behaviour Goals
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.ZombieHorse#checkZombieHorseSpawnRules(EntityType<? extends Animal>,LevelAccessor,EntitySpawnReason,BlockPos,RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:40 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบ Zombie Horse Spawn Rules
ทำงานยังไง
เรียกต่อ: isSpawner(), checkAnimalSpawnRules(), ignoresLightRequirements(), isBrightEnoughToSpawn().
Parameters
EntityType<? extends Animal> entityTypeLevelAccessor levelAccessorEntitySpawnReason entitySpawnReasonBlockPos blockPosRandomSource randomSource
ตัวอย่างใช้งาน
EntityType<? extends Animal> entityType = ...;
LevelAccessor levelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = ZombieHorse.checkZombieHorseSpawnRules(entityType, levelAccessor, entitySpawnReason, blockPos, randomSource);
net.minecraft.world.entity.animal.horse.ZombieHorse#createAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:36 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Attributes
ทำงานยังไง
เรียกต่อ: createBaseHorseAttributes(), add(). คืนค่า: createBaseHorseAttributes().add(Attributes.MAX_HEALTH, 15.0).add(Attributes.MOVEMENT_SPEED, 0.2F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.ZombieHorse#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:53 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: SoundEvents.ZOMBIE_HORSE_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.ZombieHorse#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:68 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: EntityType.ZOMBIE_HORSE.create(serverLevel, EntitySpawnReason.BREEDING).
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
ZombieHorse instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.animal.horse.ZombieHorse#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:58 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.ZOMBIE_HORSE_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.animal.horse.ZombieHorse#getDefaultDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:83 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Default Dimensions
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: this.isBaby() ? BABY_DIMENSIONS : super.getDefaultDimensions(pose).
Parameters
Pose pose
ตัวอย่างใช้งาน
ZombieHorse instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDefaultDimensions(pose);
net.minecraft.world.entity.animal.horse.ZombieHorse#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:63 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.ZOMBIE_HORSE_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.animal.horse.ZombieHorse#mobInteract(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:74 - Modifiers:
public - Return:
InteractionResult
คืออะไร
ดำเนินการ mobInteract ตาม implementation ของ ZombieHorse
ทำงานยังไง
เรียกต่อ: isTamed(). คืนค่า: !this.isTamed() ? InteractionResult.PASS : super.mobInteract(player, interactionHand).
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
ZombieHorse instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.mobInteract(player, interactionHand);
net.minecraft.world.entity.animal.horse.ZombieHorse#randomizeAttributes(RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:48 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ randomizeAttributes ตาม implementation ของ ZombieHorse
ทำงานยังไง
เรียกต่อ: getAttribute(), setBaseValue(), generateJumpStrength().
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected void randomizeAttributes(RandomSource randomSource) {
super.randomizeAttributes(randomSource);
}
net.minecraft.world.entity.animal.horse.ZombieHorse#ZombieHorse(EntityType<? extends ZombieHorse>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/animal/horse/ZombieHorse.java:32 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ZombieHorse ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends ZombieHorse> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends ZombieHorse> entityType = ...;
Level level = ...;
ZombieHorse instance = new ZombieHorse(entityType, level);