Package net.minecraft.world.entity.vehicle
Part 1/1
AbstractBoat
- Full name:
net.minecraft.world.entity.vehicle.AbstractBoat - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/AbstractBoat.java - Type:
class - Modifiers:
public abstract - Extends:
VehicleEntity - Implements:
Leashable
net.minecraft.world.entity.vehicle.AbstractBoat#AbstractBoat(EntityType<? extends AbstractBoat>,Level,Supplier<Item>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:86 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractBoat ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: dropItem, blocksBuilding.
Parameters
EntityType<? extends AbstractBoat> entityTypeLevel levelSupplier<Item> supplier
ตัวอย่างใช้งาน
EntityType<? extends AbstractBoat> entityType = ...;
Level level = ...;
Supplier<Item> supplier = ...;
AbstractBoat instance = new AbstractBoat(entityType, level, supplier);
net.minecraft.world.entity.vehicle.AbstractBoat#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:723 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: writeLeashData().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractBoat#animateHurt(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:187 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ animateHurt ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: setHurtDir(), getHurtDir(), setHurtTime(), setDamage(), getDamage().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#canAddPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:782 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Add Passenger
ทำงานยังไง
เรียกต่อ: getPassengers(), size(), getMaxPassengers(), isEyeInFluid(). คืนค่า: this.getPassengers().size() < this.getMaxPassengers() && !this.isEyeInFluid(FluidTags.WATER).
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean canAddPassenger(Entity entity) {
return super.canAddPassenger(entity);
}
net.minecraft.world.entity.vehicle.AbstractBoat#canBeCollidedWith()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:121 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Collided With
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:199 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ AbstractBoat
ทำงานยังไง
แก้ state: lerpSteps.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#canCollideWith(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:112 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Collide With
ทำงานยังไง
เรียกต่อ: canVehicleCollide(). คืนค่า: canVehicleCollide(this, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#canVehicleCollide(Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:117 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Vehicle Collide
ทำงานยังไง
เรียกต่อ: canBeCollidedWith(), isPushable(), isPassengerOfSameVehicle(). คืนค่า: (entity2.canBeCollidedWith() || entity2.isPushable()) && !entity.isPassengerOfSameVehicle(entity2).
Parameters
Entity entityEntity entity2
ตัวอย่างใช้งาน
Entity entity = ...;
Entity entity2 = ...;
boolean result = AbstractBoat.canVehicleCollide(entity, entity2);
net.minecraft.world.entity.vehicle.AbstractBoat#checkFallDamage(double,boolean,BlockState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:754 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Fall Damage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastYd, fallDistance. เรียกต่อ: getDeltaMovement(), isPassenger(), resetFallDistance(), level(), getFluidState(), blockPosition(), below(), is().
Parameters
double dboolean blBlockState blockStateBlockPos blockPos
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockPos blockPos = ...;
@Override
protected void checkFallDamage(double d, boolean bl, BlockState blockState, BlockPos blockPos) {
super.checkFallDamage(d, bl, blockState, blockPos);
}
net.minecraft.world.entity.vehicle.AbstractBoat#clampRotation(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:709 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ clampRotation ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: setYBodyRot(), getYRot(), wrapDegrees(), clamp(), setYRot(), setYHeadRot().
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected void clampRotation(Entity entity) {
super.clampRotation(entity);
}
net.minecraft.world.entity.vehicle.AbstractBoat#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:104 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.vehicle.AbstractBoat#elasticRangeLeashBehaviour(Entity,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:416 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ elasticRangeLeashBehaviour ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: position(), subtract(), normalize(), scale(), getDeltaMovement(), dot(), setDeltaMovement(), add().
Parameters
Entity entityfloat f
ตัวอย่างใช้งาน
AbstractBoat instance = ...;
Entity entity = ...;
instance.elasticRangeLeashBehaviour(entity, 0.0F);
net.minecraft.world.entity.vehicle.AbstractBoat#getBubbleAngle(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:778 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Bubble Angle
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.bubbleAngleO, this.bubbleAngle).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getControllingPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:791 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Controlling Passenger
ทำงานยังไง
เรียกต่อ: getFirstPassenger(). คืนค่า: this.getFirstPassenger() instanceof LivingEntity livingEntity ? livingEntity : super.getControllingPassenger().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getDefaultGravity()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:575 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Default Gravity
ทำงานยังไง
คืนค่า: 0.04.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getDismountLocationForPassenger(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:677 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Dismount Location For Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getCollisionHorizontalEscapeVector(), getBbWidth(), getYRot(), getX(), getZ(), containing(), getBoundingBox(), below(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
AbstractBoat instance = ...;
LivingEntity livingEntity = ...;
Vec3 result = instance.getDismountLocationForPassenger(livingEntity);
net.minecraft.world.entity.vehicle.AbstractBoat#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:809 - Modifiers:
protected final - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.dropItem.get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getGroundFriction()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:478 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Ground Friction
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBoundingBox(), floor(), ceil(), create(), MutableBlockPos(), set(), level(), getBlockState(). สร้างออบเจ็กต์: AABB, BlockPos.MutableBlockPos. คืนค่า: f / o.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getLeashData()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:400 - Modifiers:
public - Return:
Leashable.LeashData
คืออะไร
อ่านค่า Leash Data
ทำงานยังไง
คืนค่า: this.leashData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getLeashOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:411 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Leash Offset
ทำงานยังไง
เรียกต่อ: getEyeHeight(), getBbWidth(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(0.0, 0.88F * this.getEyeHeight(), this.getBbWidth() * 0.64F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getMaxPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:787 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Max Passengers
ทำงานยังไง
คืนค่า: 2.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getMotionDirection()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:239 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Motion Direction
ทำงานยังไง
เรียกต่อ: getDirection(), getClockWise(). คืนค่า: this.getDirection().getClockWise().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getMovementEmission()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:99 - Modifiers:
protected - Return:
Entity.MovementEmission
คืออะไร
อ่านค่า Movement Emission
ทำงานยังไง
คืนค่า: Entity.MovementEmission.EVENTS.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected Entity.MovementEmission getMovementEmission() {
return super.getMovementEmission();
}
net.minecraft.world.entity.vehicle.AbstractBoat#getPaddleSound()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:369 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Paddle Sound
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: getStatus(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getPaddleState(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:766 - Modifiers:
public - Return:
boolean
คืออะไร
อ่านค่า Paddle State
ทำงานยังไง
เรียกต่อ: get(), getControllingPassenger(). คืนค่า: this.entityData.get(i == 0 ? DATA_ID_PADDLE_LEFT : DATA_ID_PADDLE_RIGHT) && this.getControllingPassenger() != null.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getPassengerAttachmentPoint(Entity,EntityDimensions,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:138 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Passenger Attachment Point
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSinglePassengerXOffset(), getPassengers(), size(), indexOf(), rideHeight(), yRot(), getYRot(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(0.0, this.rideHeight(entityDimensions), g).yRot(-this.getYRot() * (float) (Math.PI / 180.0)).
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.vehicle.AbstractBoat#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:814 - Modifiers:
public final - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
เรียกต่อ: get(). สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(this.dropItem.get()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getRelativePortalPosition(Direction.Axis,BlockUtil.FoundRectangle)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:131 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Relative Portal Position
ทำงานยังไง
เรียกต่อ: resetForwardDirectionOfRelativePortalPosition(). คืนค่า: LivingEntity.resetForwardDirectionOfRelativePortalPosition(super.getRelativePortalPosition(axis, foundRectangle)).
Parameters
Direction.Axis axisBlockUtil.FoundRectangle foundRectangle
ตัวอย่างใช้งาน
AbstractBoat instance = ...;
Direction.Axis axis = ...;
BlockUtil.FoundRectangle foundRectangle = ...;
Vec3 result = instance.getRelativePortalPosition(axis, foundRectangle);
net.minecraft.world.entity.vehicle.AbstractBoat#getRowingTime(int,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:396 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Rowing Time
ทำงานยังไง
เรียกต่อ: getPaddleState(), clampedLerp(). คืนค่า: this.getPaddleState(i) ? Mth.clampedLerp(this.paddlePositions[i] - (float) (Math.PI / 8), this.paddlePositions[i], f) : 0.0F.
Parameters
int ifloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getSinglePassengerXOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:654 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Single Passenger XOffset
ทำงานยังไง
คืนค่า: 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#getWaterLevelAbove()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:442 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Water Level Above
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBoundingBox(), floor(), ceil(), MutableBlockPos(), set(), level(), getFluidState(), is(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#hasEnoughSpaceFor(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:658 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Enough Space For
ทำงานยังไง
เรียกต่อ: getBbWidth(). คืนค่า: entity.getBbWidth() < this.getBbWidth().
Parameters
Entity entity
ตัวอย่างใช้งาน
AbstractBoat instance = ...;
Entity entity = ...;
boolean result = instance.hasEnoughSpaceFor(entity);
net.minecraft.world.entity.vehicle.AbstractBoat#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:733 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSecondaryUseActive(), level(), startRiding(). คืนค่า: interactionResult.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
AbstractBoat instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.AbstractBoat#isPickable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:194 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pickable
ทำงานยังไง
เรียกต่อ: isRemoved(). คืนค่า: !this.isRemoved().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#isPushable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:126 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pushable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#isUnderWater()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:804 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Under Water
ทำงานยังไง
แก้ state: status. คืนค่า: this.status == AbstractBoat.Status.UNDER_WATER || this.status == AbstractBoat.Status.UNDER_FLOWING_WATER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:214 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.lerpSteps > 0 ? this.lerpX : this.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:229 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.lerpSteps > 0 ? (float)this.lerpXRot : this.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:219 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.lerpSteps > 0 ? this.lerpY : this.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:234 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.lerpSteps > 0 ? (float)this.lerpYRot : this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:224 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ AbstractBoat
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.lerpSteps > 0 ? this.lerpZ : this.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:204 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ AbstractBoat
ทำงานยังไง
แก้ state: lerpX, lerpY, lerpZ, lerpYRot, lerpXRot, lerpSteps.
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#onAboveBubbleCol(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:157 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Above Bubble Col
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: isAboveBubbleColumn, bubbleColumnDirectionIsDown. เรียกต่อ: level(), getBubbleTime(), setBubbleTime(), addParticle(), getX(), nextFloat(), getY(), getZ().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#onPassengerTurned(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:718 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Passenger Turned
ทำงานยังไง
เรียกต่อ: clampRotation().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#positionRider(Entity,Entity.MoveFunction)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:662 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ positionRider ตาม implementation ของ AbstractBoat
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getType(), is(), setYRot(), getYRot(), setYHeadRot(), getYHeadRot(), clampRotation(), getPassengers().
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.vehicle.AbstractBoat#push(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:176 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ AbstractBoat
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBoundingBox().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:728 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: readLeashData().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractBoat#remove(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:745 - Modifiers:
public - Return:
void
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), shouldDestroy(), isLeashed(), dropLeash().
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
AbstractBoat instance = ...;
Entity.RemovalReason removalReason = ...;
instance.remove(removalReason);
net.minecraft.world.entity.vehicle.AbstractBoat#rideHeight(EntityDimensions)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:136 - Modifiers:
protected abstract - Return:
double
คืออะไร
ดำเนินการ rideHeight ตาม implementation ของ AbstractBoat
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
EntityDimensions entityDimensions
ตัวอย่างใช้งาน
EntityDimensions entityDimensions = ...;
@Override
protected double rideHeight(EntityDimensions entityDimensions) {
return super.rideHeight(entityDimensions);
}
net.minecraft.world.entity.vehicle.AbstractBoat#setInitialPos(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:92 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Initial Pos
ทำงานยังไง
แก้ state: xo, yo, zo. เรียกต่อ: setPos().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#setInput(boolean,boolean,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:797 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Input
ทำงานยังไง
แก้ state: inputLeft, inputRight, inputUp, inputDown.
Parameters
boolean blboolean bl2boolean bl3boolean bl4
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#setLeashData(Leashable.LeashData)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:406 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Leash Data
ทำงานยังไง
แก้ state: leashData.
Parameters
Leashable.LeashData leashData
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#setPaddleState(boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:391 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Paddle State
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean blboolean bl2
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractBoat#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractBoat.java:244 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: oldStatus, status, outOfControlTicks. เรียกต่อ: getStatus(), level(), ejectPassengers(), getHurtTime(), setHurtTime(), getDamage(), setDamage(), tickLerp(). สร้างออบเจ็กต์: ServerboundPaddleBoatPacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AbstractChestBoat
- Full name:
net.minecraft.world.entity.vehicle.AbstractChestBoat - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/AbstractChestBoat.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractBoat - Implements:
HasCustomInventoryScreen,ContainerEntity
net.minecraft.world.entity.vehicle.AbstractChestBoat#AbstractChestBoat(EntityType<? extends AbstractChestBoat>,Level,Supplier<Item>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractChestBoat ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends AbstractChestBoat> entityTypeLevel levelSupplier<Item> supplier
ตัวอย่างใช้งาน
EntityType<? extends AbstractChestBoat> entityType = ...;
Level level = ...;
Supplier<Item> supplier = ...;
AbstractChestBoat instance = new AbstractChestBoat(entityType, level, supplier);
net.minecraft.world.entity.vehicle.AbstractChestBoat#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:49 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: addChestVehicleSaveData(), registryAccess().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractChestBoat#clearContent()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:107 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clearChestVehicleContent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#clearItemStacks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:192 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Item Stacks
ทำงานยังไง
แก้ state: itemStacks. เรียกต่อ: withSize(), getContainerSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:151 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), unpackLootTable(), threeRows(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
AbstractChestBoat instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
net.minecraft.world.entity.vehicle.AbstractChestBoat#destroy(ServerLevel,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:61 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ destroy ตาม implementation ของ AbstractChestBoat
ทำงานยังไง
เรียกต่อ: getDropItem(), chestVehicleDestroyed().
Parameters
ServerLevel serverLevelDamageSource damageSource
ตัวอย่างใช้งาน
AbstractChestBoat instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
instance.destroy(serverLevel, damageSource);
net.minecraft.world.entity.vehicle.AbstractChestBoat#getContainerLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:166 - Modifiers:
public - Return:
ResourceKey<LootTable>
คืออะไร
อ่านค่า Container Loot Table
ทำงานยังไง
คืนค่า: this.lootTable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getContainerLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:177 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Container Loot Table Seed
ทำงานยังไง
คืนค่า: this.lootTableSeed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:112 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 27.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getItem(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:117 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: getChestVehicleItem(). คืนค่า: this.getChestVehicleItem(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getItemStacks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:187 - Modifiers:
public - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Item Stacks
ทำงานยังไง
คืนค่า: this.itemStacks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getMaxPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:44 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Max Passengers
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getSinglePassengerXOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:39 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Single Passenger XOffset
ทำงานยังไง
คืนค่า: 0.15F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:137 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
เรียกต่อ: getChestVehicleSlot(). คืนค่า: this.getChestVehicleSlot(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:76 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSecondaryUseActive(), canAddPassenger(), interactWithContainerVehicle(), consumesAction(), level(), gameEvent(), angerNearbyPiglins(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
AbstractChestBoat instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.AbstractChestBoat#openCustomInventoryScreen(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:98 - Modifiers:
public - Return:
void
คืออะไร
เปิด Custom Inventory Screen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: openMenu(), level(), gameEvent(), angerNearbyPiglins().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:55 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: readChestVehicleSaveData(), registryAccess().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractChestBoat#remove(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:67 - Modifiers:
public - Return:
void
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), shouldDestroy(), dropContents().
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
AbstractChestBoat instance = ...;
Entity.RemovalReason removalReason = ...;
instance.remove(removalReason);
net.minecraft.world.entity.vehicle.AbstractChestBoat#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:122 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
เรียกต่อ: removeChestVehicleItem(). คืนค่า: this.removeChestVehicleItem(i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:127 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: removeChestVehicleItemNoUpdate(). คืนค่า: this.removeChestVehicleItemNoUpdate(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#setChanged()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:142 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#setContainerLootTable(ResourceKey<LootTable>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:172 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Container Loot Table
ทำงานยังไง
แก้ state: lootTable.
Parameters
ResourceKey<LootTable> resourceKey
ตัวอย่างใช้งาน
AbstractChestBoat instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setContainerLootTable(resourceKey);
net.minecraft.world.entity.vehicle.AbstractChestBoat#setContainerLootTableSeed(long)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:182 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Container Loot Table Seed
ทำงานยังไง
แก้ state: lootTableSeed.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:132 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: setChestVehicleItem().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:146 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ AbstractChestBoat
ทำงานยังไง
เรียกต่อ: isChestVehicleStillValid(). คืนค่า: this.isChestVehicleStillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
AbstractChestBoat instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
net.minecraft.world.entity.vehicle.AbstractChestBoat#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:197 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
เรียกต่อ: level(), gameEvent(), position(), of().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractChestBoat#unpackLootTable(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractChestBoat.java:162 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ unpackLootTable ตาม implementation ของ AbstractChestBoat
ทำงานยังไง
เรียกต่อ: unpackChestVehicleLootTable().
Parameters
Player player
ตัวอย่างใช้งาน
AbstractMinecart
- Full name:
net.minecraft.world.entity.vehicle.AbstractMinecart - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/AbstractMinecart.java - Type:
class - Modifiers:
public abstract - Extends:
VehicleEntity
net.minecraft.world.entity.vehicle.AbstractMinecart#AbstractMinecart(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:78 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractMinecart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: blocksBuilding, behavior. เรียกต่อ: useExperimentalMovement(). สร้างออบเจ็กต์: NewMinecartBehavior, OldMinecartBehavior.
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
AbstractMinecart instance = new AbstractMinecart(entityType, level);
net.minecraft.world.entity.vehicle.AbstractMinecart#AbstractMinecart(EntityType<?>,Level,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:88 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractMinecart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: setInitialPos().
Parameters
EntityType<?> entityTypeLevel leveldouble ddouble edouble f
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
AbstractMinecart instance = new AbstractMinecart(entityType, level, 0.0D, 0.0D, 0.0D);
net.minecraft.world.entity.vehicle.AbstractMinecart#activateMinecart(int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:285 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ activateMinecart ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iint jint kboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:473 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasCustomDisplay(), putBoolean(), put(), writeBlockState(), getDisplayBlockState(), putInt(), getDisplayOffset().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#animateHurt(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:213 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ animateHurt ตาม implementation ของ AbstractMinecart
ทำงานยังไง
เรียกต่อ: setHurtDir(), getHurtDir(), setHurtTime(), setDamage(), getDamage().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#applyEffectsFromBlocks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:394 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Effects From Blocks
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: useExperimentalMovement(), level(), position().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#applyGravity()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:293 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Gravity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#applyNaturalSlowdown(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:452 - Modifiers:
protected - Return:
Vec3
คืออะไร
นำไปใช้ Natural Slowdown
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSlowdownFactor(), multiply(), isInWater(), scale(). คืนค่า: vec32.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected Vec3 applyNaturalSlowdown(Vec3 vec3) {
return super.applyNaturalSlowdown(vec3);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:313 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#canCollideWith(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:135 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Collide With
ทำงานยังไง
เรียกต่อ: canVehicleCollide(). คืนค่า: AbstractBoat.canVehicleCollide(this, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
Entity entity = ...;
boolean result = instance.canCollideWith(entity);
net.minecraft.world.entity.vehicle.AbstractMinecart#comeOffTrack(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:357 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ comeOffTrack ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getMaxSpeed(), getDeltaMovement(), setDeltaMovement(), clamp(), onGround(), scale(), move().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void comeOffTrack(ServerLevel serverLevel) {
super.comeOffTrack(serverLevel);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#createMinecart(Level,double,double,double,EntityType<T>,EntitySpawnReason,ItemStack,Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:100 - Modifiers:
public static - Return:
T
คืออะไร
สร้าง Minecart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(), setInitialPos(), createDefaultStackConfig(), accept(), getBehavior(), getCurrentBlockPosOrRailBelow(), getBlockState(), adjustToRails(). คืนค่า: abstractMinecart.
Parameters
Level leveldouble ddouble edouble fEntityType<T> entityTypeEntitySpawnReason entitySpawnReasonItemStack itemStackPlayer player
ตัวอย่างใช้งาน
Level level = ...;
EntityType<T> entityType = ...;
EntitySpawnReason entitySpawnReason = ...;
ItemStack itemStack = ...;
Player player = ...;
T result = AbstractMinecart.createMinecart(level, 0.0D, 0.0D, 0.0D, entityType, entitySpawnReason, itemStack, player);
net.minecraft.world.entity.vehicle.AbstractMinecart#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:127 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ AbstractMinecart
ทำงานยังไง
เรียกต่อ: define(), getId(), defaultBlockState().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#exits(RailShape)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:225 - Modifiers:
public static - Return:
Pair<Vec3i, Vec3i>
คืออะไร
ดำเนินการ exits ตาม implementation ของ AbstractMinecart
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: EXITS.get(railShape).
Parameters
RailShape railShape
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getBehavior()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:118 - Modifiers:
public - Return:
MinecartBehavior
คืออะไร
อ่านค่า Behavior
ทำงานยังไง
คืนค่า: this.behavior.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getBlockSpeedFactor()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:207 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Block Speed Factor
ทำงานยังไง
เรียกต่อ: level(), getBlockState(), blockPosition(), is(). คืนค่า: blockState.is(BlockTags.RAILS) ? 1.0F : super.getBlockSpeedFactor().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getCurrentBlockPosOrRailBelow()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:265 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Current Block Pos Or Rail Below
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: floor(), getX(), getY(), getZ(), useExperimentalMovement(), level(), getBlockState(), containing(). สร้างออบเจ็กต์: BlockPos. คืนค่า: new BlockPos(i, j, k).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:560 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(). คืนค่า: Blocks.AIR.defaultBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getDefaultDisplayOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:568 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Default Display Offset
ทำงานยังไง
คืนค่า: 6.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getDefaultGravity()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:234 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Default Gravity
ทำงานยังไง
เรียกต่อ: isInWater(). คืนค่า: this.isInWater() ? 0.005 : 0.04.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getDismountLocationForPassenger(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:156 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Dismount Location For Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMotionDirection(), getAxis(), offsetsForDirection(), blockPosition(), MutableBlockPos(), getDismountPoses(), getDimensions(), min(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos, AABB. มีจุด return อย่างน้อย 3 จุด.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
LivingEntity livingEntity = ...;
Vec3 result = instance.getDismountLocationForPassenger(livingEntity);
net.minecraft.world.entity.vehicle.AbstractMinecart#getDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:556 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Display Block State
ทำงานยังไง
เรียกต่อ: hasCustomDisplay(), getDefaultDisplayBlockState(), stateById(), getEntityData(), get(). คืนค่า: !this.hasCustomDisplay() ? this.getDefaultDisplayBlockState() : Block.stateById(this.getEntityData().get(DATA_ID_DISPLAY_BLOCK)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getDisplayOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:564 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Display Offset
ทำงานยังไง
เรียกต่อ: hasCustomDisplay(), getDefaultDisplayOffset(), getEntityData(), get(). คืนค่า: !this.hasCustomDisplay() ? this.getDefaultDisplayOffset() : this.getEntityData().get(DATA_ID_DISPLAY_OFFSET).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getKnownMovement()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:308 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Known Movement
ทำงานยังไง
คืนค่า: this.behavior.getKnownMovement(super.getKnownMovement()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getMaxSpeed(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:281 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Max Speed
ทำงานยังไง
คืนค่า: this.behavior.getMaxSpeed(serverLevel).
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected double getMaxSpeed(ServerLevel serverLevel) {
return super.getMaxSpeed(serverLevel);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#getMotionDirection()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:229 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Motion Direction
ทำงานยังไง
คืนค่า: this.behavior.getMotionDirection().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getMovementEmission()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:122 - Modifiers:
protected - Return:
Entity.MovementEmission
คืออะไร
อ่านค่า Movement Emission
ทำงานยังไง
คืนค่า: Entity.MovementEmission.EVENTS.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected Entity.MovementEmission getMovementEmission() {
return super.getMovementEmission();
}
net.minecraft.world.entity.vehicle.AbstractMinecart#getPassengerAttachmentPoint(Entity,EntityDimensions,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:150 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Passenger Attachment Point
ทำงานยังไง
คืนค่า: bl ? LOWERED_PASSENGER_ATTACHMENT : super.getPassengerAttachmentPoint(entity, entityDimensions, f).
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.vehicle.AbstractMinecart#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:594 - Modifiers:
public abstract - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#getRedstoneDirection(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:420 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Redstone Direction
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getBlockState(), is(), getValue(), getBlock(), getShapeProperty(), isRedstoneConductor(), west(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 6 จุด.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
BlockPos blockPos = ...;
Vec3 result = instance.getRedstoneDirection(blockPos);
net.minecraft.world.entity.vehicle.AbstractMinecart#getRelativePortalPosition(Direction.Axis,BlockUtil.FoundRectangle)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:145 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Relative Portal Position
ทำงานยังไง
เรียกต่อ: resetForwardDirectionOfRelativePortalPosition(). คืนค่า: LivingEntity.resetForwardDirectionOfRelativePortalPosition(super.getRelativePortalPosition(axis, foundRectangle)).
Parameters
Direction.Axis axisBlockUtil.FoundRectangle foundRectangle
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
Direction.Axis axis = ...;
BlockUtil.FoundRectangle foundRectangle = ...;
Vec3 result = instance.getRelativePortalPosition(axis, foundRectangle);
net.minecraft.world.entity.vehicle.AbstractMinecart#hasCustomDisplay()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:582 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Custom Display
ทำงานยังไง
เรียกต่อ: getEntityData(), get(). คืนค่า: this.getEntityData().get(DATA_ID_CUSTOM_DISPLAY).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isFirstTick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:261 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ First Tick
ทำงานยังไง
คืนค่า: this.firstTick.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isFlipped()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:412 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Flipped
ทำงานยังไง
คืนค่า: this.flipped.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isFurnace()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:601 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Furnace
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isOnRails()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:403 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ On Rails
ทำงานยังไง
คืนค่า: this.onRails.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isPickable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:220 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pickable
ทำงานยังไง
เรียกต่อ: isRemoved(). คืนค่า: !this.isRemoved().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isPushable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:140 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pushable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#isRedstoneConductor(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:448 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Redstone Conductor
ทำงานยังไง
เรียกต่อ: level(), getBlockState(). คืนค่า: this.level().getBlockState(blockPos).isRedstoneConductor(this.level(), blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
BlockPos blockPos = ...;
boolean result = instance.isRedstoneConductor(blockPos);
net.minecraft.world.entity.vehicle.AbstractMinecart#isRideable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:597 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Rideable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpMotion(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:348 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpMotion ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpPositionAndRotationStep(int,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:288 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpPositionAndRotationStep ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int idouble ddouble edouble fdouble gdouble h
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
instance.lerpPositionAndRotationStep(0, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D);
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:323 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ AbstractMinecart
ทำงานยังไง
คืนค่า: this.behavior.lerpTargetX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:338 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ AbstractMinecart
ทำงานยังไง
คืนค่า: this.behavior.lerpTargetXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:328 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ AbstractMinecart
ทำงานยังไง
คืนค่า: this.behavior.lerpTargetY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:343 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ AbstractMinecart
ทำงานยังไง
คืนค่า: this.behavior.lerpTargetYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:333 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ AbstractMinecart
ทำงานยังไง
คืนค่า: this.behavior.lerpTargetZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:318 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#makeStepAlongTrack(BlockPos,RailShape,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:371 - Modifiers:
protected - Return:
double
คืออะไร
สร้าง Step Along Track
ทำงานยังไง
เรียกต่อ: stepAlongTrack(). คืนค่า: this.behavior.stepAlongTrack(blockPos, railShape, d).
Parameters
BlockPos blockPosRailShape railShapedouble d
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
RailShape railShape = ...;
@Override
protected double makeStepAlongTrack(BlockPos blockPos, RailShape railShape, double d) {
return super.makeStepAlongTrack(blockPos, railShape, d);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#move(MoverType,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:375 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: onRails. เรียกต่อ: useExperimentalMovement(), level(), position(), add(), pushAndPickupEntities(), subtract(), equals(), applyEffectsFromBlocks().
Parameters
MoverType moverTypeVec3 vec3
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
MoverType moverType = ...;
Vec3 vec3 = ...;
instance.move(moverType, vec3);
net.minecraft.world.entity.vehicle.AbstractMinecart#moveAlongTrack(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:353 - Modifiers:
protected - Return:
void
คืออะไร
เคลื่อนที่ Along Track
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void moveAlongTrack(ServerLevel serverLevel) {
super.moveAlongTrack(serverLevel);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#push(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:485 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), hasPassenger(), getX(), getZ(), sqrt(), pushOtherMinecart().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:462 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: flipped, firstTick. เรียกต่อ: getBoolean(), setDisplayBlockState(), readBlockState(), level(), holderLookup(), getCompound(), setDisplayOffset(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractMinecart#reapplyPosition()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:298 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ reapplyPosition ตาม implementation ของ AbstractMinecart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#setCustomDisplay(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:586 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Custom Display
ทำงานยังไง
เรียกต่อ: getEntityData(), set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#setDisplayBlockState(BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:572 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Display Block State
ทำงานยังไง
เรียกต่อ: getEntityData(), set(), getId(), setCustomDisplay().
Parameters
BlockState blockState
ตัวอย่างใช้งาน
AbstractMinecart instance = ...;
BlockState blockState = ...;
instance.setDisplayBlockState(blockState);
net.minecraft.world.entity.vehicle.AbstractMinecart#setDisplayOffset(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:577 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Display Offset
ทำงานยังไง
เรียกต่อ: getEntityData(), set(), setCustomDisplay().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#setFlipped(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:416 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Flipped
ทำงานยังไง
แก้ state: flipped.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#setInitialPos(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:93 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Initial Pos
ทำงานยังไง
แก้ state: xo, yo, zo. เรียกต่อ: setPos().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#setOnRails(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:408 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า On Rails
ทำงานยังไง
แก้ state: onRails.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:239 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fallDistance, firstTick. เรียกต่อ: getHurtTime(), setHurtTime(), getDamage(), setDamage(), checkBelowWorld(), handlePortal(), updateInWaterStateAndDoFluidPushing(), isInLava().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#updateInWaterStateAndDoFluidPushing()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:303 - Modifiers:
public - Return:
boolean
คืออะไร
อัปเดต In Water State And Do Fluid Pushing
ทำงานยังไง
คืนค่า: super.updateInWaterStateAndDoFluidPushing().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecart#useExperimentalMovement(Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecart.java:590 - Modifiers:
public static - Return:
boolean
คืออะไร
ใช้งาน Experimental Movement
ทำงานยังไง
เรียกต่อ: enabledFeatures(), contains(). คืนค่า: level.enabledFeatures().contains(FeatureFlags.MINECART_IMPROVEMENTS).
Parameters
Level level
ตัวอย่างใช้งาน
AbstractMinecartContainer
- Full name:
net.minecraft.world.entity.vehicle.AbstractMinecartContainer - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractMinecart - Implements:
ContainerEntity
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#AbstractMinecartContainer(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:29 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractMinecartContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
AbstractMinecartContainer instance = new AbstractMinecartContainer(entityType, level);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:82 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: addChestVehicleSaveData(), registryAccess().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#applyNaturalSlowdown(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:99 - Modifiers:
protected - Return:
Vec3
คืออะไร
นำไปใช้ Natural Slowdown
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lootTable. เรียกต่อ: getRedstoneSignalFromContainer(), isInWater(), multiply(). คืนค่า: vec3.multiply(f, 0.0, f).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected Vec3 applyNaturalSlowdown(Vec3 vec3) {
return super.applyNaturalSlowdown(vec3);
}
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#clearContent()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:114 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clearChestVehicleContent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#clearItemStacks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:163 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Item Stacks
ทำงานยังไง
แก้ state: itemStacks. เรียกต่อ: withSize(), getContainerSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:135 - Modifiers:
protected abstract - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:124 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), unpackChestVehicleLootTable(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#destroy(ServerLevel,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:33 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ destroy ตาม implementation ของ AbstractMinecartContainer
ทำงานยังไง
เรียกต่อ: chestVehicleDestroyed().
Parameters
ServerLevel serverLevelDamageSource damageSource
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
instance.destroy(serverLevel, damageSource);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#getContainerLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:137 - Modifiers:
public - Return:
ResourceKey<LootTable>
คืออะไร
อ่านค่า Container Loot Table
ทำงานยังไง
คืนค่า: this.lootTable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
ResourceKey<LootTable> result = instance.getContainerLootTable();
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#getContainerLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:148 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Container Loot Table Seed
ทำงานยังไง
คืนค่า: this.lootTableSeed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#getItem(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:39 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: getChestVehicleItem(). คืนค่า: this.getChestVehicleItem(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#getItemStacks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:158 - Modifiers:
public - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Item Stacks
ทำงานยังไง
คืนค่า: this.itemStacks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:59 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
เรียกต่อ: getChestVehicleSlot(). คืนค่า: this.getChestVehicleSlot(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:94 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
เรียกต่อ: interactWithContainerVehicle(). คืนค่า: this.interactWithContainerVehicle(player).
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:88 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: readChestVehicleSaveData(), registryAccess().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#remove(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:73 - Modifiers:
public - Return:
void
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), shouldDestroy(), dropContents().
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
Entity.RemovalReason removalReason = ...;
instance.remove(removalReason);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:44 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
เรียกต่อ: removeChestVehicleItem(). คืนค่า: this.removeChestVehicleItem(i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:49 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: removeChestVehicleItemNoUpdate(). คืนค่า: this.removeChestVehicleItemNoUpdate(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#setChanged()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:64 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#setContainerLootTable(ResourceKey<LootTable>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:143 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Container Loot Table
ทำงานยังไง
แก้ state: lootTable.
Parameters
ResourceKey<LootTable> resourceKey
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setContainerLootTable(resourceKey);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#setContainerLootTableSeed(long)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:153 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Container Loot Table Seed
ทำงานยังไง
แก้ state: lootTableSeed.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:54 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: setChestVehicleItem().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
ItemStack itemStack = ...;
instance.setItem(0, itemStack);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#setLootTable(ResourceKey<LootTable>,long)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:119 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loot Table
ทำงานยังไง
แก้ state: lootTable, lootTableSeed.
Parameters
ResourceKey<LootTable> resourceKeylong l
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setLootTable(resourceKey, 0L);
net.minecraft.world.entity.vehicle.AbstractMinecartContainer#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ AbstractMinecartContainer
ทำงานยังไง
เรียกต่อ: isChestVehicleStillValid(). คืนค่า: this.isChestVehicleStillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
AbstractMinecartContainer instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
Boat
- Full name:
net.minecraft.world.entity.vehicle.Boat - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/Boat.java - Type:
class - Modifiers:
public - Extends:
AbstractBoat
net.minecraft.world.entity.vehicle.Boat#Boat(EntityType<? extends Boat>,Level,Supplier<Item>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Boat.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Boat ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends Boat> entityTypeLevel levelSupplier<Item> supplier
ตัวอย่างใช้งาน
EntityType<? extends Boat> entityType = ...;
Level level = ...;
Supplier<Item> supplier = ...;
Boat instance = new Boat(entityType, level, supplier);
net.minecraft.world.entity.vehicle.Boat#rideHeight(EntityDimensions)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Boat.java:14 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ rideHeight ตาม implementation ของ Boat
ทำงานยังไง
เรียกต่อ: height(). คืนค่า: entityDimensions.height() / 3.0F.
Parameters
EntityDimensions entityDimensions
ตัวอย่างใช้งาน
EntityDimensions entityDimensions = ...;
@Override
protected double rideHeight(EntityDimensions entityDimensions) {
return super.rideHeight(entityDimensions);
}
ChestBoat
- Full name:
net.minecraft.world.entity.vehicle.ChestBoat - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/ChestBoat.java - Type:
class - Modifiers:
public - Extends:
AbstractChestBoat
net.minecraft.world.entity.vehicle.ChestBoat#ChestBoat(EntityType<? extends ChestBoat>,Level,Supplier<Item>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ChestBoat.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChestBoat ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends ChestBoat> entityTypeLevel levelSupplier<Item> supplier
ตัวอย่างใช้งาน
EntityType<? extends ChestBoat> entityType = ...;
Level level = ...;
Supplier<Item> supplier = ...;
ChestBoat instance = new ChestBoat(entityType, level, supplier);
net.minecraft.world.entity.vehicle.ChestBoat#rideHeight(EntityDimensions)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ChestBoat.java:14 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ rideHeight ตาม implementation ของ ChestBoat
ทำงานยังไง
เรียกต่อ: height(). คืนค่า: entityDimensions.height() / 3.0F.
Parameters
EntityDimensions entityDimensions
ตัวอย่างใช้งาน
EntityDimensions entityDimensions = ...;
@Override
protected double rideHeight(EntityDimensions entityDimensions) {
return super.rideHeight(entityDimensions);
}
ChestRaft
- Full name:
net.minecraft.world.entity.vehicle.ChestRaft - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/ChestRaft.java - Type:
class - Modifiers:
public - Extends:
AbstractChestBoat
net.minecraft.world.entity.vehicle.ChestRaft#ChestRaft(EntityType<? extends ChestRaft>,Level,Supplier<Item>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ChestRaft.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChestRaft ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends ChestRaft> entityTypeLevel levelSupplier<Item> supplier
ตัวอย่างใช้งาน
EntityType<? extends ChestRaft> entityType = ...;
Level level = ...;
Supplier<Item> supplier = ...;
ChestRaft instance = new ChestRaft(entityType, level, supplier);
net.minecraft.world.entity.vehicle.ChestRaft#rideHeight(EntityDimensions)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ChestRaft.java:14 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ rideHeight ตาม implementation ของ ChestRaft
ทำงานยังไง
เรียกต่อ: height(). คืนค่า: entityDimensions.height() * 0.8888889F.
Parameters
EntityDimensions entityDimensions
ตัวอย่างใช้งาน
EntityDimensions entityDimensions = ...;
@Override
protected double rideHeight(EntityDimensions entityDimensions) {
return super.rideHeight(entityDimensions);
}
ContainerEntity
- Full name:
net.minecraft.world.entity.vehicle.ContainerEntity - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/ContainerEntity.java - Type:
interface - Modifiers:
public - Implements:
Container,MenuProvider
net.minecraft.world.entity.vehicle.ContainerEntity#addChestVehicleSaveData(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:62 - Modifiers:
default - Return:
void
คืออะไร
เพิ่ม Chest Vehicle Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getContainerLootTable(), putString(), location(), toString(), getContainerLootTableSeed(), putLong(), saveAllItems(), getItemStacks().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
instance.addChestVehicleSaveData(compoundTag, provider);
net.minecraft.world.entity.vehicle.ContainerEntity#chestVehicleDestroyed(DamageSource,ServerLevel,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:83 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ chestVehicleDestroyed ตาม implementation ของ ContainerEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getGameRules(), getBoolean(), dropContents(), getDirectEntity(), getType(), angerNearbyPiglins().
Parameters
DamageSource damageSourceServerLevel serverLevelEntity entity
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
DamageSource damageSource = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
instance.chestVehicleDestroyed(damageSource, serverLevel, entity);
net.minecraft.world.entity.vehicle.ContainerEntity#clearChestVehicleContent()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:116 - Modifiers:
default - Return:
void
คืออะไร
ล้าง Chest Vehicle Content
ทำงานยังไง
เรียกต่อ: unpackChestVehicleLootTable(), getItemStacks(), clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#clearItemStacks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:51 - Modifiers: ``
- Return:
void
คืออะไร
ล้าง Item Stacks
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#getBoundingBox()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:38 - Modifiers: ``
- Return:
AABB
คืออะไร
อ่านค่า Bounding Box
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#getChestVehicleItem(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:142 - Modifiers:
default - Return:
ItemStack
คืออะไร
อ่านค่า Chest Vehicle Item
ทำงานยังไง
เรียกต่อ: unpackChestVehicleLootTable(), getItemStacks(), get(). คืนค่า: this.getItemStacks().get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#getChestVehicleSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:158 - Modifiers:
default - Return:
SlotAccess
คืออะไร
อ่านค่า Chest Vehicle Slot
ทำงานยังไง
เรียกต่อ: getContainerSize(), get(), getChestVehicleItem(), set(), setChestVehicleItem(). สร้างออบเจ็กต์: SlotAccess. มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#getContainerLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:40 - Modifiers: ``
- Return:
ResourceKey<LootTable>
คืออะไร
อ่านค่า Container Loot Table
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#getContainerLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:45 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Container Loot Table Seed
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#getItemStacks()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:49 - Modifiers: ``
- Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Item Stacks
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#interactWithContainerVehicle(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:93 - Modifiers:
default - Return:
InteractionResult
คืออะไร
จัดการ interaction With Container Vehicle
ทำงานยังไง
เรียกต่อ: openMenu(). คืนค่า: InteractionResult.SUCCESS.
Parameters
Player player
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
Player player = ...;
InteractionResult result = instance.interactWithContainerVehicle(player);
net.minecraft.world.entity.vehicle.ContainerEntity#isChestVehicleEmpty()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:121 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Chest Vehicle Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getItemStacks(), isEmpty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#isChestVehicleStillValid(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:173 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Chest Vehicle Still Valid
ทำงานยังไง
เรียกต่อ: isRemoved(), canInteractWithEntity(), getBoundingBox(). คืนค่า: !this.isRemoved() && player.canInteractWithEntity(this.getBoundingBox(), 4.0).
Parameters
Player player
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
Player player = ...;
boolean result = instance.isChestVehicleStillValid(player);
net.minecraft.world.entity.vehicle.ContainerEntity#isEmpty()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:57 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
เรียกต่อ: isChestVehicleEmpty(). คืนค่า: this.isChestVehicleEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#isRemoved()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:55 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Removed
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#level()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:53 - Modifiers: ``
- Return:
Level
คืออะไร
ดำเนินการ level ตาม implementation ของ ContainerEntity
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#position()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:36 - Modifiers: ``
- Return:
Vec3
คืออะไร
ดำเนินการ position ตาม implementation ของ ContainerEntity
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#readChestVehicleSaveData(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:73 - Modifiers:
default - Return:
void
คืออะไร
อ่าน Chest Vehicle Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: clearItemStacks(), contains(), setContainerLootTable(), create(), parse(), getString(), setContainerLootTableSeed(), getLong().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
instance.readChestVehicleSaveData(compoundTag, provider);
net.minecraft.world.entity.vehicle.ContainerEntity#removeChestVehicleItem(int,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:147 - Modifiers:
default - Return:
ItemStack
คืออะไร
ลบ Chest Vehicle Item
ทำงานยังไง
เรียกต่อ: unpackChestVehicleLootTable(), removeItem(), getItemStacks(). คืนค่า: ContainerHelper.removeItem(this.getItemStacks(), i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#removeChestVehicleItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:131 - Modifiers:
default - Return:
ItemStack
คืออะไร
ลบ Chest Vehicle Item No Update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: unpackChestVehicleLootTable(), getItemStacks(), get(), isEmpty(), set(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#setChestVehicleItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:152 - Modifiers:
default - Return:
void
คืออะไร
กำหนดค่า Chest Vehicle Item
ทำงานยังไง
เรียกต่อ: unpackChestVehicleLootTable(), getItemStacks(), set(), limitSize(), getMaxStackSize().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
ItemStack itemStack = ...;
instance.setChestVehicleItem(0, itemStack);
net.minecraft.world.entity.vehicle.ContainerEntity#setContainerLootTable(ResourceKey<LootTable>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:43 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Container Loot Table
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceKey<LootTable> resourceKey
ตัวอย่างใช้งาน
ContainerEntity instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setContainerLootTable(resourceKey);
net.minecraft.world.entity.vehicle.ContainerEntity#setContainerLootTableSeed(long)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:47 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Container Loot Table Seed
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.ContainerEntity#unpackChestVehicleLootTable(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/ContainerEntity.java:98 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ unpackChestVehicleLootTable ตาม implementation ของ ContainerEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getServer(), getContainerLootTable(), reloadableRegistries(), getLootTable(), trigger(), setContainerLootTable(), Builder(). สร้างออบเจ็กต์: LootParams.Builder.
Parameters
Player player
ตัวอย่างใช้งาน
DismountHelper
- Full name:
net.minecraft.world.entity.vehicle.DismountHelper - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/DismountHelper.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.vehicle.DismountHelper#canDismountTo(CollisionGetter,LivingEntity,AABB)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:41 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Dismount To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBlockCollisions(), isEmpty(), getWorldBorder(), isWithinBounds(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CollisionGetter collisionGetterLivingEntity livingEntityAABB aABB
ตัวอย่างใช้งาน
CollisionGetter collisionGetter = ...;
LivingEntity livingEntity = ...;
AABB aABB = ...;
boolean result = DismountHelper.canDismountTo(collisionGetter, livingEntity, aABB);
net.minecraft.world.entity.vehicle.DismountHelper#canDismountTo(CollisionGetter,Vec3,LivingEntity,Pose)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:51 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Dismount To
ทำงานยังไง
เรียกต่อ: getLocalBoundsForPose(), move(). คืนค่า: canDismountTo(collisionGetter, livingEntity, livingEntity.getLocalBoundsForPose(pose).move(vec3)).
Parameters
CollisionGetter collisionGetterVec3 vec3LivingEntity livingEntityPose pose
ตัวอย่างใช้งาน
CollisionGetter collisionGetter = ...;
Vec3 vec3 = ...;
LivingEntity livingEntity = ...;
Pose pose = ...;
boolean result = DismountHelper.canDismountTo(collisionGetter, vec3, livingEntity, pose);
net.minecraft.world.entity.vehicle.DismountHelper#findCeilingFrom(BlockPos,int,Function<BlockPos, VoxelShape>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:62 - Modifiers:
public static - Return:
double
คืออะไร
ค้นหา Ceiling From
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: mutable(), apply(), isEmpty(), getY(), min(), move(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockPos blockPosint iFunction<BlockPos, VoxelShape> function
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
Function<BlockPos, VoxelShape> function = ...;
double result = DismountHelper.findCeilingFrom(blockPos, 0, function);
net.minecraft.world.entity.vehicle.DismountHelper#findSafeDismountLocation(EntityType<?>,CollisionGetter,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:79 - Modifiers:
public static - Return:
Vec3
คืออะไร
ค้นหา Safe Dismount Location
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isBlockDangerous(), getBlockState(), getBlockFloorHeight(), nonClimbableShape(), below(), isBlockFloorValid(), upFromBottomCenterOf(), getDimensions(). มีจุด return อย่างน้อย 6 จุด.
Parameters
EntityType<?> entityTypeCollisionGetter collisionGetterBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
CollisionGetter collisionGetter = ...;
BlockPos blockPos = ...;
Vec3 result = DismountHelper.findSafeDismountLocation(entityType, collisionGetter, blockPos, true);
net.minecraft.world.entity.vehicle.DismountHelper#isBlockFloorValid(double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:37 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Block Floor Valid
ทำงานยังไง
เรียกต่อ: isInfinite(). คืนค่า: !Double.isInfinite(d) && d < 1.0.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.DismountHelper#nonClimbableShape(BlockGetter,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:55 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
ดำเนินการ nonClimbableShape ตาม implementation ของ DismountHelper
ทำงานยังไง
เรียกต่อ: getBlockState(), is(), getBlock(), getValue(), getCollisionShape(), empty().
Parameters
BlockGetter blockGetterBlockPos blockPos
ตัวอย่างใช้งาน
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
VoxelShape result = DismountHelper.nonClimbableShape(blockGetter, blockPos);
net.minecraft.world.entity.vehicle.DismountHelper#offsetsForDirection(Direction)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/DismountHelper.java:21 - Modifiers:
public static - Return:
int[][]
คืออะไร
ดำเนินการ offsetsForDirection ตาม implementation ของ DismountHelper
ทำงานยังไง
เรียกต่อ: getClockWise(), getOpposite(), getStepX(), getStepZ().
Parameters
Direction direction
ตัวอย่างใช้งาน
Minecart
- Full name:
net.minecraft.world.entity.vehicle.Minecart - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/Minecart.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecart
net.minecraft.world.entity.vehicle.Minecart#activateMinecart(int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:47 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ activateMinecart ตาม implementation ของ Minecart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isVehicle(), ejectPassengers(), getHurtTime(), setHurtDir(), getHurtDir(), setHurtTime(), setDamage(), markHurt().
Parameters
int iint jint kboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.Minecart#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:37 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.Minecart#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:42 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.Minecart#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:23 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: playerRotationOffset. เรียกต่อ: isSecondaryUseActive(), isVehicle(), level(), startRiding(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
Minecart instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.Minecart#isRideable()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:63 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Rideable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.Minecart#Minecart(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Minecart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
Minecart instance = new Minecart(entityType, level);
net.minecraft.world.entity.vehicle.Minecart#positionRider(Entity,Entity.MoveFunction)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:80 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ positionRider ตาม implementation ของ Minecart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: playerRotationOffset. เรียกต่อ: level(), shouldRotateWithMinecart(), useExperimentalMovement(), rotLerp(), setYRot(), getYRot().
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.vehicle.Minecart#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Minecart.java:68 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: rotationOffset. เรียกต่อ: getYRot(), position(), level(), distanceTo().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartBehavior
- Full name:
net.minecraft.world.entity.vehicle.MinecartBehavior - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartBehavior.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.entity.vehicle.MinecartBehavior#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:17 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ MinecartBehavior
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getDeltaMovement()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:62 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Delta Movement
ทำงานยังไง
คืนค่า: this.minecart.getDeltaMovement().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getKnownMovement(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:118 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Known Movement
ทำงานยังไง
คืนค่า: vec3.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getMaxSpeed(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:122 - Modifiers:
public abstract - Return:
double
คืออะไร
อ่านค่า Max Speed
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
MinecartBehavior instance = ...;
ServerLevel serverLevel = ...;
double result = instance.getMaxSpeed(serverLevel);
net.minecraft.world.entity.vehicle.MinecartBehavior#getMotionDirection()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:114 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Motion Direction
ทำงานยังไง
เรียกต่อ: getDirection(). คืนค่า: this.minecart.getDirection().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getSlowdownFactor()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:124 - Modifiers:
public abstract - Return:
double
คืออะไร
อ่านค่า Slowdown Factor
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getX()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:78 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า X
ทำงานยังไง
คืนค่า: this.minecart.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getXRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:98 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า XRot
ทำงานยังไง
คืนค่า: this.minecart.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getY()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:82 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Y
ทำงานยังไง
คืนค่า: this.minecart.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getYRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:106 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า YRot
ทำงานยังไง
คืนค่า: this.minecart.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#getZ()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:86 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Z
ทำงานยังไง
คืนค่า: this.minecart.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpMotion(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:46 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpMotion ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: setDeltaMovement().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:26 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:38 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:30 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:42 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:34 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:20 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ MinecartBehavior
ทำงานยังไง
เรียกต่อ: setPos(), setYRot(), setXRot().
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#level()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:52 - Modifiers:
public - Return:
Level
คืออะไร
ดำเนินการ level ตาม implementation ของ MinecartBehavior
ทำงานยังไง
คืนค่า: this.minecart.level().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#MinecartBehavior(AbstractMinecart)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:13 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartBehavior ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecart.
Parameters
AbstractMinecart abstractMinecart
ตัวอย่างใช้งาน
AbstractMinecart abstractMinecart = ...;
MinecartBehavior instance = new MinecartBehavior(abstractMinecart);
net.minecraft.world.entity.vehicle.MinecartBehavior#moveAlongTrack(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:56 - Modifiers:
public abstract - Return:
void
คืออะไร
เคลื่อนที่ Along Track
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
MinecartBehavior instance = ...;
ServerLevel serverLevel = ...;
instance.moveAlongTrack(serverLevel);
net.minecraft.world.entity.vehicle.MinecartBehavior#position()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:74 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ position ตาม implementation ของ MinecartBehavior
ทำงานยังไง
คืนค่า: this.minecart.position().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#pushAndPickupEntities()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:60 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ดำเนินการ pushAndPickupEntities ตาม implementation ของ MinecartBehavior
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#setDeltaMovement(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:70 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Delta Movement
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#setDeltaMovement(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:66 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Delta Movement
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#setPos(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:94 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pos
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#setPos(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pos
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#setXRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:102 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า XRot
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#setYRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:110 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า YRot
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartBehavior#stepAlongTrack(BlockPos,RailShape,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:58 - Modifiers:
public abstract - Return:
double
คืออะไร
ดำเนินการ stepAlongTrack ตาม implementation ของ MinecartBehavior
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BlockPos blockPosRailShape railShapedouble d
ตัวอย่างใช้งาน
MinecartBehavior instance = ...;
BlockPos blockPos = ...;
RailShape railShape = ...;
double result = instance.stepAlongTrack(blockPos, railShape, 0.0D);
net.minecraft.world.entity.vehicle.MinecartBehavior#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartBehavior.java:50 - Modifiers:
public abstract - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartChest
- Full name:
net.minecraft.world.entity.vehicle.MinecartChest - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartChest.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecartContainer
net.minecraft.world.entity.vehicle.MinecartChest#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:52 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
เรียกต่อ: threeRows(). คืนค่า: ChestMenu.threeRows(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
MinecartChest instance = ...;
Inventory inventory = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory);
net.minecraft.world.entity.vehicle.MinecartChest#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:37 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 27.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartChest#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:42 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(), setValue(). คืนค่า: Blocks.CHEST.defaultBlockState().setValue(ChestBlock.FACING, Direction.NORTH).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartChest#getDefaultDisplayOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:47 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Default Display Offset
ทำงานยังไง
คืนค่า: 8.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartChest#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:27 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.CHEST_MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartChest#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:32 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.CHEST_MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartChest#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:62 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: interactWithContainerVehicle(), consumesAction(), level(), gameEvent(), angerNearbyPiglins(). คืนค่า: interactionResult.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
MinecartChest instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.MinecartChest#MinecartChest(EntityType<? extends MinecartChest>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartChest ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends MinecartChest> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends MinecartChest> entityType = ...;
Level level = ...;
MinecartChest instance = new MinecartChest(entityType, level);
net.minecraft.world.entity.vehicle.MinecartChest#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartChest.java:57 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
เรียกต่อ: level(), gameEvent(), position(), of().
Parameters
Player player
ตัวอย่างใช้งาน
MinecartCommandBlock
- Full name:
net.minecraft.world.entity.vehicle.MinecartCommandBlock - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartCommandBlock.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecart
net.minecraft.world.entity.vehicle.MinecartCommandBlock#activateMinecart(int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:75 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ activateMinecart ตาม implementation ของ MinecartCommandBlock
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastActivated. เรียกต่อ: getCommandBlock(), performCommand(), level().
Parameters
int iint jint kboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:60 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: save(), registryAccess().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartCommandBlock#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:45 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ MinecartCommandBlock
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.vehicle.MinecartCommandBlock#getCommandBlock()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:71 - Modifiers:
public - Return:
BaseCommandBlock
คืออะไร
อ่านค่า Command Block
ทำงานยังไง
คืนค่า: this.commandBlock.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:66 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(). คืนค่า: Blocks.COMMAND_BLOCK.defaultBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:35 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:40 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.COMMAND_BLOCK_MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:83 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
เรียกต่อ: usedBy(). คืนค่า: this.commandBlock.usedBy(player).
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
MinecartCommandBlock instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.MinecartCommandBlock#MinecartCommandBlock(EntityType<? extends MinecartCommandBlock>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartCommandBlock ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends MinecartCommandBlock> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends MinecartCommandBlock> entityType = ...;
Level level = ...;
MinecartCommandBlock instance = new MinecartCommandBlock(entityType, level);
net.minecraft.world.entity.vehicle.MinecartCommandBlock#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:88 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: equals(), setLastOutput(), getEntityData(), get(), setCommand().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
MinecartCommandBlock instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.vehicle.MinecartCommandBlock#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:52 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: load(), registryAccess(), getEntityData(), set(), getCommandBlock(), getCommand(), getLastOutput().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
MinecartCommandBlock$MinecartCommandBase
- Full name:
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartCommandBlock.java - Type:
class - Modifiers:
public - Extends:
BaseCommandBlock
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase#createCommandSourceStack()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:122 - Modifiers:
public - Return:
CommandSourceStack
คืออะไร
สร้าง Command Source Stack
ทำงานยังไง
เรียกต่อ: position(), getRotationVector(), getLevel(), getName(), getString(), getDisplayName(), getServer(). สร้างออบเจ็กต์: CommandSourceStack.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartCommandBlock.MinecartCommandBase instance = ...;
CommandSourceStack result = instance.createCommandSourceStack();
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase#getLevel()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:102 - Modifiers:
public - Return:
ServerLevel
คืออะไร
อ่านค่า Level
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: (ServerLevel)MinecartCommandBlock.this.level().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase#getMinecart()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:118 - Modifiers:
public - Return:
MinecartCommandBlock
คืออะไร
อ่านค่า Minecart
ทำงานยังไง
คืนค่า: MinecartCommandBlock.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartCommandBlock.MinecartCommandBase instance = ...;
MinecartCommandBlock result = instance.getMinecart();
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase#getPosition()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:113 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Position
ทำงานยังไง
เรียกต่อ: position(). คืนค่า: MinecartCommandBlock.this.position().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase#isValid()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:137 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid
ทำงานยังไง
เรียกต่อ: isRemoved(). คืนค่า: !MinecartCommandBlock.this.isRemoved().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartCommandBlock$MinecartCommandBase#onUpdated()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartCommandBlock.java:107 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Updated
ทำงานยังไง
เรียกต่อ: getEntityData(), set(), getCommand(), getLastOutput().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartFurnace
- Full name:
net.minecraft.world.entity.vehicle.MinecartFurnace - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartFurnace.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecart
net.minecraft.world.entity.vehicle.MinecartFurnace#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:120 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putDouble(), putShort().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartFurnace#applyNaturalSlowdown(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:81 - Modifiers:
protected - Return:
Vec3
คืออะไร
นำไปใช้ Natural Slowdown
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: push. เรียกต่อ: lengthSqr(), calculateNewPushAlong(), multiply(), add(), isInWater(), scale(). คืนค่า: super.applyNaturalSlowdown(vec32).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected Vec3 applyNaturalSlowdown(Vec3 vec3) {
return super.applyNaturalSlowdown(vec3);
}
net.minecraft.world.entity.vehicle.MinecartFurnace#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:40 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ MinecartFurnace
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.vehicle.MinecartFurnace#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:145 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(), setValue(), hasFuel(). คืนค่า: Blocks.FURNACE.defaultBlockState().setValue(FurnaceBlock.FACING, Direction.NORTH).setValue(FurnaceBlock.LIT, this.hasFuel()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartFurnace#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:71 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.FURNACE_MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartFurnace#getMaxSpeed(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:66 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Max Speed
ทำงานยังไง
เรียกต่อ: isInWater(). คืนค่า: this.isInWater() ? super.getMaxSpeed(serverLevel) * 0.75 : super.getMaxSpeed(serverLevel) * 0.5.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected double getMaxSpeed(ServerLevel serverLevel) {
return super.getMaxSpeed(serverLevel);
}
net.minecraft.world.entity.vehicle.MinecartFurnace#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:76 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.FURNACE_MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartFurnace#hasFuel()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:137 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Fuel
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ID_FUEL).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartFurnace#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:105 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fuel, push. เรียกต่อ: getItemInHand(), is(), consume(), position(), subtract(), horizontal(). คืนค่า: InteractionResult.SUCCESS.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
MinecartFurnace instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.vehicle.MinecartFurnace#isFurnace()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:35 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Furnace
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartFurnace#MinecartFurnace(EntityType<? extends MinecartFurnace>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartFurnace ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends MinecartFurnace> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends MinecartFurnace> entityType = ...;
Level level = ...;
MinecartFurnace instance = new MinecartFurnace(entityType, level);
net.minecraft.world.entity.vehicle.MinecartFurnace#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:128 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: push, fuel. เรียกต่อ: getDouble(), getShort(). สร้างออบเจ็กต์: Vec3.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartFurnace#setHasFuel(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:141 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Has Fuel
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartFurnace#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartFurnace.java:46 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fuel, push. เรียกต่อ: level(), isClientSide(), setHasFuel(), hasFuel(), nextInt(), addParticle(), getX(), getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartHopper
- Full name:
net.minecraft.world.entity.vehicle.MinecartHopper - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartHopper.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecartContainer - Implements:
Hopper
net.minecraft.world.entity.vehicle.MinecartHopper#activateMinecart(int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:44 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ activateMinecart ตาม implementation ของ MinecartHopper
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEnabled(), setEnabled().
Parameters
int iint jint kboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:126 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putBoolean().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartHopper#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:138 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: HopperMenu. คืนค่า: new HopperMenu(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
MinecartHopper instance = ...;
Inventory inventory = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory);
net.minecraft.world.entity.vehicle.MinecartHopper#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:39 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 5.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:29 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(). คืนค่า: Blocks.HOPPER.defaultBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getDefaultDisplayOffset()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:34 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Default Display Offset
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:116 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.HOPPER_MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getLevelX()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:60 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Level X
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getLevelY()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:65 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Level Y
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.getY() + 0.5.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getLevelZ()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:70 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Level Z
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:121 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.HOPPER_MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#isEnabled()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:52 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Enabled
ทำงานยังไง
คืนค่า: this.enabled.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#isGridAligned()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:75 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Grid Aligned
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#makeStepAlongTrack(BlockPos,RailShape,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:87 - Modifiers:
protected - Return:
double
คืออะไร
สร้าง Step Along Track
ทำงานยังไง
เรียกต่อ: tryConsumeItems(). คืนค่า: e.
Parameters
BlockPos blockPosRailShape railShapedouble d
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
RailShape railShape = ...;
@Override
protected double makeStepAlongTrack(BlockPos blockPos, RailShape railShape, double d) {
return super.makeStepAlongTrack(blockPos, railShape, d);
}
net.minecraft.world.entity.vehicle.MinecartHopper#MinecartHopper(EntityType<? extends MinecartHopper>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartHopper ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends MinecartHopper> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends MinecartHopper> entityType = ...;
Level level = ...;
MinecartHopper instance = new MinecartHopper(entityType, level);
net.minecraft.world.entity.vehicle.MinecartHopper#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:132 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: enabled. เรียกต่อ: contains(), getBoolean().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartHopper#setEnabled(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:56 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Enabled
ทำงานยังไง
แก้ state: enabled.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#suckInItems()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:101 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ suckInItems ตาม implementation ของ MinecartHopper
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), getEntitiesOfClass(), getBoundingBox(), inflate(), addItem(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartHopper#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartHopper.java:80 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
แก้ state: consumedItemThisFrame. เรียกต่อ: tryConsumeItems().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartSpawner
- Full name:
net.minecraft.world.entity.vehicle.MinecartSpawner - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartSpawner.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecart
net.minecraft.world.entity.vehicle.MinecartSpawner#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:56 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: save().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartSpawner#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:45 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(). คืนค่า: Blocks.SPAWNER.defaultBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartSpawner#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:29 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartSpawner#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:34 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartSpawner#getSpawner()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:73 - Modifiers:
public - Return:
BaseSpawner
คืออะไร
อ่านค่า Spawner
ทำงานยังไง
คืนค่า: this.spawner.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartSpawner#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:62 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
เรียกต่อ: onEventTriggered(), level().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartSpawner#MinecartSpawner(EntityType<? extends MinecartSpawner>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartSpawner ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: ticker. เรียกต่อ: createTicker().
Parameters
EntityType<? extends MinecartSpawner> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends MinecartSpawner> entityType = ...;
Level level = ...;
MinecartSpawner instance = new MinecartSpawner(entityType, level);
net.minecraft.world.entity.vehicle.MinecartSpawner#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:50 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: load(), level(), blockPosition().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartSpawner#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartSpawner.java:67 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
เรียกต่อ: run().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartTNT
- Full name:
net.minecraft.world.entity.vehicle.MinecartTNT - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/MinecartTNT.java - Type:
class - Modifiers:
public - Extends:
AbstractMinecart
net.minecraft.world.entity.vehicle.MinecartTNT#activateMinecart(int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:129 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ activateMinecart ตาม implementation ของ MinecartTNT
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: primeFuse().
Parameters
int iint jint kboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:195 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putInt(), putFloat().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartTNT#causeFallDamage(float,float,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:119 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ causeFallDamage ตาม implementation ของ MinecartTNT
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: explode(). คืนค่า: super.causeFallDamage(f, g, damageSource).
Parameters
float ffloat gDamageSource damageSource
ตัวอย่างใช้งาน
MinecartTNT instance = ...;
DamageSource damageSource = ...;
boolean result = instance.causeFallDamage(0.0F, 0.0F, damageSource);
net.minecraft.world.entity.vehicle.MinecartTNT#destroy(ServerLevel,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:74 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ destroy ตาม implementation ของ MinecartTNT
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fuse. เรียกต่อ: getDeltaMovement(), horizontalDistanceSqr(), damageSourceIgnitesTnt(), getDropItem(), primeFuse(), nextInt().
Parameters
ServerLevel serverLevelDamageSource damageSource
ตัวอย่างใช้งาน
MinecartTNT instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
instance.destroy(serverLevel, damageSource);
net.minecraft.world.entity.vehicle.MinecartTNT#explode(DamageSource,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:101 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ explode ตาม implementation ของ MinecartTNT
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), min(), sqrt(), getX(), getY(), getZ(), nextDouble(), discard().
Parameters
DamageSource damageSourcedouble d
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected void explode(DamageSource damageSource, double d) {
super.explode(damageSource, d);
}
net.minecraft.world.entity.vehicle.MinecartTNT#explode(double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:97 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ explode ตาม implementation ของ MinecartTNT
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#getBlockExplosionResistance(Explosion,BlockGetter,BlockPos,BlockState,FluidState,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:163 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Block Explosion Resistance
ทำงานยังไง
เรียกต่อ: isPrimed(), is(), getBlockState(), above().
Parameters
Explosion explosionBlockGetter blockGetterBlockPos blockPosBlockState blockStateFluidState fluidStatefloat f
ตัวอย่างใช้งาน
MinecartTNT instance = ...;
Explosion explosion = ...;
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
FluidState fluidState = ...;
float result = instance.getBlockExplosionResistance(explosion, blockGetter, blockPos, blockState, fluidState, 0.0F);
net.minecraft.world.entity.vehicle.MinecartTNT#getDefaultDisplayBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:41 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Default Display Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(). คืนค่า: Blocks.TNT.defaultBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:87 - Modifiers:
protected - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
คืนค่า: Items.TNT_MINECART.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#getFuse()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:155 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Fuse
ทำงานยังไง
คืนค่า: this.fuse.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:92 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.TNT_MINECART).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:136 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: primeFuse().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:64 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDirectEntity(), isOnFire(), damageSources(), explosion(), getEntity(), explode(), getDeltaMovement(), lengthSqr(). คืนค่า: super.hurtServer(serverLevel, damageSource, f).
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
MinecartTNT instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.vehicle.MinecartTNT#isPrimed()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:159 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Primed
ทำงานยังไง
คืนค่า: this.fuse > -1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#MinecartTNT(EntityType<? extends MinecartTNT>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartTNT ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends MinecartTNT> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends MinecartTNT> entityType = ...;
Level level = ...;
MinecartTNT instance = new MinecartTNT(entityType, level);
net.minecraft.world.entity.vehicle.MinecartTNT#primeFuse()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:145 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ primeFuse ตาม implementation ของ MinecartTNT
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fuse. เรียกต่อ: level(), broadcastEntityEvent(), isSilent(), playSound(), getX(), getY(), getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.MinecartTNT#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:179 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fuse, explosionPowerBase, explosionSpeedFactor. เรียกต่อ: contains(), getInt(), clamp(), getFloat().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.vehicle.MinecartTNT#shouldBlockExplode(Explosion,BlockGetter,BlockPos,BlockState,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:172 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Block Explode
ทำงานยังไง
เรียกต่อ: isPrimed(), is(), getBlockState(), above().
Parameters
Explosion explosionBlockGetter blockGetterBlockPos blockPosBlockState blockStatefloat f
ตัวอย่างใช้งาน
MinecartTNT instance = ...;
Explosion explosion = ...;
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
boolean result = instance.shouldBlockExplode(explosion, blockGetter, blockPos, blockState, 0.0F);
net.minecraft.world.entity.vehicle.MinecartTNT#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/MinecartTNT.java:46 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fuse. เรียกต่อ: level(), addParticle(), getX(), getY(), getZ(), explode(), getDeltaMovement(), horizontalDistanceSqr().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NewMinecartBehavior
- Full name:
net.minecraft.world.entity.vehicle.NewMinecartBehavior - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/NewMinecartBehavior.java - Type:
class - Modifiers:
public - Extends:
MinecartBehavior
net.minecraft.world.entity.vehicle.NewMinecartBehavior#adjustToRails(BlockPos,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:155 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ adjustToRails ตาม implementation ของ NewMinecartBehavior
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isRail(), getValue(), getBlock(), getShapeProperty(), exits(), getFirst(), scale(), getSecond(). สร้างออบเจ็กต์: Vec3, NewMinecartBehavior.MinecartStep.
Parameters
BlockPos blockPosBlockState blockStateboolean bl
ตัวอย่างใช้งาน
NewMinecartBehavior instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
instance.adjustToRails(blockPos, blockState, true);
net.minecraft.world.entity.vehicle.NewMinecartBehavior#cartHasPosRotLerp()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:95 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ cartHasPosRotLerp ตาม implementation ของ NewMinecartBehavior
ทำงานยังไง
เรียกต่อ: isEmpty(). คืนค่า: !this.currentLerpSteps.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#getCartLerpMovements(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:114 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Cart Lerp Movements
ทำงานยังไง
เรียกต่อ: getCurrentLerpStep(), lerp(). คืนค่า: Mth.lerp(stepPartialTicks.partialTicksInStep, stepPartialTicks.previousStep.movement, stepPartialTicks.currentStep.movement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#getCartLerpPosition(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:109 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Cart Lerp Position
ทำงานยังไง
เรียกต่อ: getCurrentLerpStep(), lerp(). คืนค่า: Mth.lerp(stepPartialTicks.partialTicksInStep, stepPartialTicks.previousStep.position, stepPartialTicks.currentStep.position).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#getCartLerpXRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:99 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Cart Lerp XRot
ทำงานยังไง
เรียกต่อ: getCurrentLerpStep(), rotLerp(). คืนค่า: Mth.rotLerp(stepPartialTicks.partialTicksInStep, stepPartialTicks.previousStep.xRot, stepPartialTicks.currentStep.xRot).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#getCartLerpYRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:104 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Cart Lerp YRot
ทำงานยังไง
เรียกต่อ: getCurrentLerpStep(), rotLerp(). คืนค่า: Mth.rotLerp(stepPartialTicks.partialTicksInStep, stepPartialTicks.previousStep.yRot, stepPartialTicks.currentStep.yRot).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#getMaxSpeed(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:467 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Max Speed
ทำงานยังไง
เรียกต่อ: getGameRules(), getInt(), isInWater(). คืนค่า: serverLevel.getGameRules().getInt(GameRules.RULE_MINECART_MAX_SPEED) * (this.minecart.isInWater() ? 0.5 : 1.0) / 20.0.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
NewMinecartBehavior instance = ...;
ServerLevel serverLevel = ...;
double result = instance.getMaxSpeed(serverLevel);
net.minecraft.world.entity.vehicle.NewMinecartBehavior#getSlowdownFactor()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:482 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Slowdown Factor
ทำงานยังไง
เรียกต่อ: isVehicle(). คืนค่า: this.minecart.isVehicle() ? 0.997 : 0.975.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#moveAlongTrack(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:222 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ Along Track
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: TrackIteration(), shouldIterate(), isAlive(), getDeltaMovement(), getCurrentBlockPosOrRailBelow(), level(), getBlockState(), isRail(). สร้างออบเจ็กต์: NewMinecartBehavior.TrackIteration, NewMinecartBehavior.MinecartStep.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
NewMinecartBehavior instance = ...;
ServerLevel serverLevel = ...;
instance.moveAlongTrack(serverLevel);
net.minecraft.world.entity.vehicle.NewMinecartBehavior#NewMinecartBehavior(AbstractMinecart)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NewMinecartBehavior ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
AbstractMinecart abstractMinecart
ตัวอย่างใช้งาน
AbstractMinecart abstractMinecart = ...;
NewMinecartBehavior instance = new NewMinecartBehavior(abstractMinecart);
net.minecraft.world.entity.vehicle.NewMinecartBehavior#pickupEntities(AABB)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:498 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ pickupEntities ตาม implementation ของ NewMinecartBehavior
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isRideable(), isVehicle(), level(), getEntities(), pushableBy(), isEmpty(), isPassenger(), startRiding(). มีจุด return อย่างน้อย 2 จุด.
Parameters
AABB aABB
ตัวอย่างใช้งาน
NewMinecartBehavior instance = ...;
AABB aABB = ...;
boolean result = instance.pickupEntities(aABB);
net.minecraft.world.entity.vehicle.NewMinecartBehavior#pushAndPickupEntities()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:487 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ pushAndPickupEntities ตาม implementation ของ NewMinecartBehavior
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: pickupEntities(), getBoundingBox(), inflate(), pushEntities(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#pushEntities(AABB)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:520 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ pushEntities ตาม implementation ของ NewMinecartBehavior
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isRideable(), level(), getEntities(), pushableBy(), isEmpty(), isVehicle(), isPassenger(), push(). คืนค่า: bl.
Parameters
AABB aABB
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#setOldLerpValues()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:91 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Old Lerp Values
ทำงานยังไง
แก้ state: oldLerp. เรียกต่อ: MinecartStep(), position(), getDeltaMovement(), getYRot(), getXRot(). สร้างออบเจ็กต์: NewMinecartBehavior.MinecartStep.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.NewMinecartBehavior#stepAlongTrack(BlockPos,RailShape,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:391 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ stepAlongTrack ตาม implementation ของ NewMinecartBehavior
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: position(), exits(), getFirst(), getSecond(), getDeltaMovement(), horizontal(), length(), setDeltaMovement(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 5 จุด.
Parameters
BlockPos blockPosRailShape railShapedouble d
ตัวอย่างใช้งาน
NewMinecartBehavior instance = ...;
BlockPos blockPos = ...;
RailShape railShape = ...;
double result = instance.stepAlongTrack(blockPos, railShape, 0.0D);
net.minecraft.world.entity.vehicle.NewMinecartBehavior#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/NewMinecartBehavior.java:47 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getCurrentBlockPosOrRailBelow(), getBlockState(), isFirstTick(), setOnRails(), isRail(), adjustToRails(), applyGravity().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
OldMinecartBehavior
- Full name:
net.minecraft.world.entity.vehicle.OldMinecartBehavior - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/OldMinecartBehavior.java - Type:
class - Modifiers:
public - Extends:
MinecartBehavior
net.minecraft.world.entity.vehicle.OldMinecartBehavior#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:43 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
แก้ state: lerpSteps.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#getKnownMovement(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:439 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Known Movement
ทำงานยังไง
เรียกต่อ: clamp(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(Mth.clamp(vec3.x, -0.4, 0.4), vec3.y, Mth.clamp(vec3.z, -0.4, 0.4)).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#getMaxSpeed(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:444 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Max Speed
ทำงานยังไง
เรียกต่อ: isInWater(). คืนค่า: this.minecart.isInWater() ? 0.2 : 0.4.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
OldMinecartBehavior instance = ...;
ServerLevel serverLevel = ...;
double result = instance.getMaxSpeed(serverLevel);
net.minecraft.world.entity.vehicle.OldMinecartBehavior#getMotionDirection()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:434 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Motion Direction
ทำงานยังไง
เรียกต่อ: isFlipped(), getDirection(), getOpposite(), getClockWise(). คืนค่า: this.minecart.isFlipped() ? this.minecart.getDirection().getOpposite().getClockWise() : this.minecart.getDirection().getClockWise().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#getPos(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:350 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Pos
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: floor(), level(), getBlockState(), is(), isRail(), getValue(), getBlock(), getShapeProperty(). สร้างออบเจ็กต์: BlockPos, Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#getPosOffs(double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:311 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Pos Offs
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: floor(), level(), getBlockState(), is(), isRail(), getValue(), getBlock(), getShapeProperty(). สร้างออบเจ็กต์: BlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
double ddouble edouble fdouble g
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#getSlowdownFactor()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:449 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Slowdown Factor
ทำงานยังไง
เรียกต่อ: isVehicle(). คืนค่า: this.minecart.isVehicle() ? 0.997 : 0.96.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpMotion(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:84 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpMotion ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
แก้ state: targetDeltaMovement. เรียกต่อ: setDeltaMovement(). สร้างออบเจ็กต์: Vec3.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:59 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.lerpSteps > 0 ? this.lerpX : this.minecart.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:74 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.lerpSteps > 0 ? (float)this.lerpXRot : this.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:64 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.lerpSteps > 0 ? this.lerpY : this.minecart.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:79 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.lerpSteps > 0 ? (float)this.lerpYRot : this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:69 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.lerpSteps > 0 ? this.lerpZ : this.minecart.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:48 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
แก้ state: lerpX, lerpY, lerpZ, lerpYRot, lerpXRot, lerpSteps. เรียกต่อ: setDeltaMovement().
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#moveAlongTrack(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:139 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ Along Track
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: getCurrentBlockPosOrRailBelow(), level(), getBlockState(), resetFallDistance(), getX(), getY(), getZ(), getPos(). สร้างออบเจ็กต์: Vec3.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
OldMinecartBehavior instance = ...;
ServerLevel serverLevel = ...;
instance.moveAlongTrack(serverLevel);
net.minecraft.world.entity.vehicle.OldMinecartBehavior#OldMinecartBehavior(AbstractMinecart)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OldMinecartBehavior ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
AbstractMinecart abstractMinecart
ตัวอย่างใช้งาน
AbstractMinecart abstractMinecart = ...;
OldMinecartBehavior instance = new OldMinecartBehavior(abstractMinecart);
net.minecraft.world.entity.vehicle.OldMinecartBehavior#pushAndPickupEntities()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:405 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ pushAndPickupEntities ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBoundingBox(), inflate(), isRideable(), getDeltaMovement(), horizontalDistanceSqr(), level(), getEntities(), pushableBy(). คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.OldMinecartBehavior#stepAlongTrack(BlockPos,RailShape,double)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:400 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ stepAlongTrack ตาม implementation ของ OldMinecartBehavior
ทำงานยังไง
คืนค่า: 0.0.
Parameters
BlockPos blockPosRailShape railShapedouble d
ตัวอย่างใช้งาน
OldMinecartBehavior instance = ...;
BlockPos blockPos = ...;
RailShape railShape = ...;
double result = instance.stepAlongTrack(blockPos, railShape, 0.0D);
net.minecraft.world.entity.vehicle.OldMinecartBehavior#tick()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/OldMinecartBehavior.java:90 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lerpSteps. เรียกต่อ: level(), applyGravity(), getCurrentBlockPosOrRailBelow(), getBlockState(), isRail(), setOnRails(), moveAlongTrack(), is().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Raft
- Full name:
net.minecraft.world.entity.vehicle.Raft - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/Raft.java - Type:
class - Modifiers:
public - Extends:
AbstractBoat
net.minecraft.world.entity.vehicle.Raft#Raft(EntityType<? extends Raft>,Level,Supplier<Item>)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Raft.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Raft ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends Raft> entityTypeLevel levelSupplier<Item> supplier
ตัวอย่างใช้งาน
EntityType<? extends Raft> entityType = ...;
Level level = ...;
Supplier<Item> supplier = ...;
Raft instance = new Raft(entityType, level, supplier);
net.minecraft.world.entity.vehicle.Raft#rideHeight(EntityDimensions)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/Raft.java:14 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ rideHeight ตาม implementation ของ Raft
ทำงานยังไง
เรียกต่อ: height(). คืนค่า: entityDimensions.height() * 0.8888889F.
Parameters
EntityDimensions entityDimensions
ตัวอย่างใช้งาน
EntityDimensions entityDimensions = ...;
@Override
protected double rideHeight(EntityDimensions entityDimensions) {
return super.rideHeight(entityDimensions);
}
VehicleEntity
- Full name:
net.minecraft.world.entity.vehicle.VehicleEntity - Package:
net.minecraft.world.entity.vehicle - Source:
common—net/minecraft/world/entity/vehicle/VehicleEntity.java - Type:
class - Modifiers:
public abstract - Extends:
Entity
net.minecraft.world.entity.vehicle.VehicleEntity#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:79 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ VehicleEntity
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.vehicle.VehicleEntity#destroy(ServerLevel,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:110 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ destroy ตาม implementation ของ VehicleEntity
ทำงานยังไง
เรียกต่อ: getDropItem().
Parameters
ServerLevel serverLevelDamageSource damageSource
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void destroy(ServerLevel serverLevel, DamageSource damageSource) {
super.destroy(serverLevel, damageSource);
}
net.minecraft.world.entity.vehicle.VehicleEntity#destroy(ServerLevel,Item)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:70 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ destroy ตาม implementation ของ VehicleEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: kill(), getGameRules(), getBoolean(), set(), getCustomName(), spawnAtLocation(). สร้างออบเจ็กต์: ItemStack.
Parameters
ServerLevel serverLevelItem item
ตัวอย่างใช้งาน
VehicleEntity instance = ...;
ServerLevel serverLevel = ...;
Item item = ...;
instance.destroy(serverLevel, item);
net.minecraft.world.entity.vehicle.VehicleEntity#getDamage()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:98 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Damage
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ID_DAMAGE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#getDimensionChangingDelay()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:114 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Dimension Changing Delay
ทำงานยังไง
คืนค่า: 10.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#getDropItem()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:119 - Modifiers:
protected abstract - Return:
Item
คืออะไร
อ่านค่า Drop Item
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#getHurtDir()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:106 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Hurt Dir
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ID_HURTDIR).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#getHurtTime()
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:102 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Hurt Time
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ID_HURT).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#hurtClient(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:29 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Client
ทำงานยังไง
คืนค่า: true.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
VehicleEntity instance = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtClient(damageSource);
net.minecraft.world.entity.vehicle.VehicleEntity#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:34 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isRemoved(), isInvulnerableToBase(), setHurtDir(), getHurtDir(), setHurtTime(), markHurt(), setDamage(), getDamage(). มีจุด return อย่างน้อย 3 จุด.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
VehicleEntity instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.vehicle.VehicleEntity#ignoreExplosion(Explosion)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:65 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ ignoreExplosion ตาม implementation ของ VehicleEntity
ทำงานยังไง
เรียกต่อ: getIndirectSourceEntity(), level(), getGameRules(), getBoolean(). คืนค่า: explosion.getIndirectSourceEntity() instanceof Mob && !explosion.level().getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING).
Parameters
Explosion explosion
ตัวอย่างใช้งาน
VehicleEntity instance = ...;
Explosion explosion = ...;
boolean result = instance.ignoreExplosion(explosion);
net.minecraft.world.entity.vehicle.VehicleEntity#setDamage(float)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:94 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Damage
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#setHurtDir(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Hurt Dir
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#setHurtTime(int)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:86 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Hurt Time
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.vehicle.VehicleEntity#VehicleEntity(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/vehicle/VehicleEntity.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VehicleEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
VehicleEntity instance = new VehicleEntity(entityType, level);