public class ControlledContraptionEntity extends AbstractContraptionEntity
IControlContraptionAbstractContraptionEntity.ContraptionRotationState| Modifier and Type | Field and Description |
|---|---|
protected float |
angle |
protected float |
angleDelta |
protected net.minecraft.util.math.BlockPos |
controllerPos |
protected float |
prevAngle |
protected net.minecraft.util.Direction.Axis |
rotationAxis |
collidingEntities, contraption, initialized, prevPosInvalidblocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld| Constructor and Description |
|---|
ControlledContraptionEntity(net.minecraft.entity.EntityType<?> type,
net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.vector.Vector3d |
applyRotation(net.minecraft.util.math.vector.Vector3d localPos,
float partialTicks) |
static ControlledContraptionEntity |
create(net.minecraft.world.World world,
IControlContraption controller,
Contraption contraption) |
void |
doLocalTransforms(float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack[] matrixStacks) |
float |
getAngle(float partialTicks) |
net.minecraft.util.math.vector.Vector3d |
getContactPointMotion(net.minecraft.util.math.vector.Vector3d globalContactPoint) |
protected IControlContraption |
getController() |
net.minecraft.util.Direction.Axis |
getRotationAxis() |
AbstractContraptionEntity.ContraptionRotationState |
getRotationState() |
protected float |
getStalledAngle() |
protected void |
handleStallInformation(float x,
float y,
float z,
float angle) |
void |
lerpTo(double x,
double y,
double z,
float yw,
float pt,
int inc,
boolean t) |
protected StructureTransform |
makeStructureTransform() |
protected void |
onContraptionStalled() |
protected void |
readAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnPacket) |
net.minecraft.util.math.vector.Vector3d |
reverseRotation(net.minecraft.util.math.vector.Vector3d localPos,
float partialTicks) |
void |
setAngle(float angle) |
protected void |
setContraption(Contraption contraption) |
void |
setRotationAxis(net.minecraft.util.Direction.Axis rotationAxis) |
protected boolean |
shouldActorTrigger(MovementContext context,
net.minecraft.world.gen.feature.template.Template.BlockInfo blockInfo,
MovementBehaviour actor,
net.minecraft.util.math.vector.Vector3d actorPosition,
net.minecraft.util.math.BlockPos gridPosition) |
void |
teleportTo(double p_70634_1_,
double p_70634_3_,
double p_70634_5_) |
protected void |
tickContraption() |
protected void |
writeAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnPacket) |
addAdditionalSaveData, addSittingPassenger, build, canAddPassenger, canCollideWith, collisionEnabled, contraptionInitialize, defineSynchedData, disassemble, doWaterSplashEffect, getAddEntityPacket, getAnchorVec, getContraption, getPassengerPosition, getPistonPushReaction, getPrevPositionVec, getYawOffset, handlePlayerInteraction, hasOnePlayerPassenger, hurt, isPickable, isStalled, kill, move, onRemovedFromWorld, outOfWorld, pitchFromVector, positionRider, readAdditionalSaveData, readSpawnData, remove, removePassenger, saveWithoutId, setContraptionMotion, setDeltaMovement, setPos, setSecondsOnFire, supportsTerrainCollision, tick, tickActors, toGlobalVector, toLocalVector, updateInWaterStateAndDoFluidPushing, writeSpawnData, yawFromVectorabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeCollidedWith, canChangeDimensions, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, killed, lavaHurt, lerpHeadTo, lerpMotion, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onSyncedDataUpdated, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, removeAfterChangingDimensions, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, rotate, save, saveAsPassenger, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateSwimmingareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected net.minecraft.util.math.BlockPos controllerPos
protected net.minecraft.util.Direction.Axis rotationAxis
protected float prevAngle
protected float angle
protected float angleDelta
public ControlledContraptionEntity(net.minecraft.entity.EntityType<?> type,
net.minecraft.world.World world)
public static ControlledContraptionEntity create(net.minecraft.world.World world, IControlContraption controller, Contraption contraption)
public net.minecraft.util.math.vector.Vector3d getContactPointMotion(net.minecraft.util.math.vector.Vector3d globalContactPoint)
getContactPointMotion in class AbstractContraptionEntityprotected void setContraption(Contraption contraption)
setContraption in class AbstractContraptionEntityprotected void readAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnPacket)
readAdditional in class AbstractContraptionEntityprotected void writeAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnPacket)
writeAdditional in class AbstractContraptionEntitypublic AbstractContraptionEntity.ContraptionRotationState getRotationState()
getRotationState in class AbstractContraptionEntitypublic net.minecraft.util.math.vector.Vector3d applyRotation(net.minecraft.util.math.vector.Vector3d localPos,
float partialTicks)
applyRotation in class AbstractContraptionEntitypublic net.minecraft.util.math.vector.Vector3d reverseRotation(net.minecraft.util.math.vector.Vector3d localPos,
float partialTicks)
reverseRotation in class AbstractContraptionEntitypublic void setAngle(float angle)
public float getAngle(float partialTicks)
public void setRotationAxis(net.minecraft.util.Direction.Axis rotationAxis)
public net.minecraft.util.Direction.Axis getRotationAxis()
public void teleportTo(double p_70634_1_,
double p_70634_3_,
double p_70634_5_)
teleportTo in class net.minecraft.entity.Entitypublic void lerpTo(double x,
double y,
double z,
float yw,
float pt,
int inc,
boolean t)
lerpTo in class net.minecraft.entity.Entityprotected void tickContraption()
tickContraption in class AbstractContraptionEntityprotected boolean shouldActorTrigger(MovementContext context, net.minecraft.world.gen.feature.template.Template.BlockInfo blockInfo, MovementBehaviour actor, net.minecraft.util.math.vector.Vector3d actorPosition, net.minecraft.util.math.BlockPos gridPosition)
shouldActorTrigger in class AbstractContraptionEntityprotected IControlContraption getController()
protected StructureTransform makeStructureTransform()
makeStructureTransform in class AbstractContraptionEntityprotected void onContraptionStalled()
onContraptionStalled in class AbstractContraptionEntityprotected float getStalledAngle()
getStalledAngle in class AbstractContraptionEntityprotected void handleStallInformation(float x,
float y,
float z,
float angle)
handleStallInformation in class AbstractContraptionEntitypublic void doLocalTransforms(float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack[] matrixStacks)
doLocalTransforms in class AbstractContraptionEntity