public class GantryContraptionEntity extends AbstractContraptionEntity
AbstractContraptionEntity.ContraptionRotationStatecollidingEntities, 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 |
|---|
GantryContraptionEntity(net.minecraft.entity.EntityType<?> entityTypeIn,
net.minecraft.world.World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.vector.Vector3d |
applyRotation(net.minecraft.util.math.vector.Vector3d localPos,
float partialTicks) |
protected void |
checkPinionShaft() |
static GantryContraptionEntity |
create(net.minecraft.world.World world,
Contraption contraption,
net.minecraft.util.Direction movementAxis) |
void |
doLocalTransforms(float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack[] matrixStacks) |
double |
getAxisCoord() |
AbstractContraptionEntity.ContraptionRotationState |
getRotationState() |
protected float |
getStalledAngle() |
static void |
handlePacket(GantryContraptionUpdatePacket packet) |
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 |
readAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnData) |
net.minecraft.util.math.vector.Vector3d |
reverseRotation(net.minecraft.util.math.vector.Vector3d localPos,
float partialTicks) |
void |
sendPacket() |
void |
teleportTo(double p_70634_1_,
double p_70634_3_,
double p_70634_5_) |
protected void |
tickContraption() |
void |
updateClientMotion() |
protected void |
writeAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnPacket) |
addAdditionalSaveData, addSittingPassenger, build, canAddPassenger, canCollideWith, collisionEnabled, contraptionInitialize, defineSynchedData, disassemble, doWaterSplashEffect, getAddEntityPacket, getAnchorVec, getContactPointMotion, getContraption, getPassengerPosition, getPistonPushReaction, getPrevPositionVec, getYawOffset, handlePlayerInteraction, hasOnePlayerPassenger, hurt, isPickable, isStalled, kill, move, onContraptionStalled, onRemovedFromWorld, outOfWorld, pitchFromVector, positionRider, readAdditionalSaveData, readSpawnData, remove, removePassenger, saveWithoutId, setContraption, setContraptionMotion, setDeltaMovement, setPos, setSecondsOnFire, shouldActorTrigger, 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, waitpublic GantryContraptionEntity(net.minecraft.entity.EntityType<?> entityTypeIn,
net.minecraft.world.World worldIn)
public static GantryContraptionEntity create(net.minecraft.world.World world, Contraption contraption, net.minecraft.util.Direction movementAxis)
protected void tickContraption()
tickContraption in class AbstractContraptionEntityprotected void checkPinionShaft()
protected void writeAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnPacket)
writeAdditional in class AbstractContraptionEntityprotected void readAdditional(net.minecraft.nbt.CompoundNBT compound,
boolean spawnData)
readAdditional 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 AbstractContraptionEntityprotected StructureTransform makeStructureTransform()
makeStructureTransform in class AbstractContraptionEntityprotected float getStalledAngle()
getStalledAngle in class AbstractContraptionEntitypublic 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 handleStallInformation(float x,
float y,
float z,
float angle)
handleStallInformation in class AbstractContraptionEntitypublic AbstractContraptionEntity.ContraptionRotationState getRotationState()
getRotationState in class AbstractContraptionEntitypublic void doLocalTransforms(float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack[] matrixStacks)
doLocalTransforms in class AbstractContraptionEntitypublic void updateClientMotion()
public double getAxisCoord()
public void sendPacket()
public static void handlePacket(GantryContraptionUpdatePacket packet)