Class BlueprintEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.decoration.HangingEntity
com.simibubi.create.content.curiosities.tools.BlueprintEntity
All Implemented Interfaces:
ISpecialEntityItemRequirement, ISyncPersistentData, IInteractionChecker, net.minecraft.commands.CommandSource, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.entity.Entity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.entity.IEntityAdditionalSpawnData

public class BlueprintEntity extends net.minecraft.world.entity.decoration.HangingEntity implements net.minecraftforge.entity.IEntityAdditionalSpawnData, ISpecialEntityItemRequirement, ISyncPersistentData, IInteractionChecker
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity

    net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReason

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>

    Nested classes/interfaces inherited from interface com.simibubi.create.foundation.networking.ISyncPersistentData

    ISyncPersistentData.PersistentDataPacket
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected net.minecraft.core.Direction
     

    Fields inherited from class net.minecraft.world.entity.decoration.HangingEntity

    direction, HANGING_ENTITY, pos

    Fields inherited from class net.minecraft.world.entity.Entity

    BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, fluidOnEyes, flyDist, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, LOGGER, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlueprintEntity(net.minecraft.world.entity.EntityType<?> p_i50221_1_, net.minecraft.world.level.Level p_i50221_2_)
     
    BlueprintEntity(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing, net.minecraft.core.Direction verticalOrientation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAdditionalSaveData(net.minecraft.nbt.CompoundTag p_213281_1_)
     
    static net.minecraft.world.entity.EntityType.Builder<?>
    build(net.minecraft.world.entity.EntityType.Builder<?> builder)
     
    boolean
    canPlayerUse(net.minecraft.world.entity.player.Player player)
     
    void
    dropItem(net.minecraft.world.entity.Entity p_110128_1_)
     
    net.minecraft.network.protocol.Packet<?>
     
    protected float
    getEyeHeight(net.minecraft.world.entity.Pose p_213316_1_, net.minecraft.world.entity.EntityDimensions p_213316_2_)
     
    int
     
    net.minecraft.nbt.CompoundTag
     
    net.minecraft.world.item.ItemStack
    getPickedResult(net.minecraft.world.phys.HitResult target)
     
     
    com.simibubi.create.content.curiosities.tools.BlueprintEntity.BlueprintSection
    getSection(int index)
     
    com.simibubi.create.content.curiosities.tools.BlueprintEntity.BlueprintSection
    getSectionAt(net.minecraft.world.phys.Vec3 vec)
     
    int
     
    net.minecraft.world.InteractionResult
    interactAt(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 vec, net.minecraft.world.InteractionHand hand)
     
    void
    lerpTo(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_)
     
    void
    moveTo(double p_70012_1_, double p_70012_3_, double p_70012_5_, float p_70012_7_, float p_70012_8_)
     
    void
     
    void
     
    void
    readAdditionalSaveData(net.minecraft.nbt.CompoundTag p_70037_1_)
     
    void
    readSpawnData(net.minecraft.network.FriendlyByteBuf additionalData)
     
    protected void
     
    boolean
    skipAttackInteraction(net.minecraft.world.entity.Entity source)
     
    boolean
     
    protected void
    updateFacingWithBoundingBox(net.minecraft.core.Direction facing, net.minecraft.core.Direction verticalOrientation)
     
    void
    writeSpawnData(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class net.minecraft.world.entity.decoration.HangingEntity

    defineSynchedData, getDirection, getPos, hurt, isPickable, mirror, move, push, refreshDimensions, repositionEntityAfterLoad, rotate, setDirection, setPos, spawnAtLocation, thunderHit, tick

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canFreeze, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkDespawn, checkFallDamage, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, eyeBlockPosition, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, gameEvent, gameEvent, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGameEventListenerRegistrar, getHandSlots, getId, getIndirectPassengers, getLeashOffset, getLevel, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSlot, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getXRot, getY, getY, getYHeadRot, getYRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interact, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, lerpMotion, limitPistonMovement, load, lookAt, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, moveRelative, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, occludesVibrations, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, outOfWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, recreateFromPacket, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, resetFallDistance, restoreFrom, revive, rideableUnderWater, rideTick, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setItemSlot, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, touchingUnloadedChunk, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity

    canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getParts, isMultipartEntity, serializeNBT, shouldRiderSit

    Methods inherited from interface com.simibubi.create.foundation.networking.ISyncPersistentData

    syncPersistentDataWithTracking
  • Field Details

    • size

      protected int size
    • verticalOrientation

      protected net.minecraft.core.Direction verticalOrientation
  • Constructor Details

    • BlueprintEntity

      public BlueprintEntity(net.minecraft.world.entity.EntityType<?> p_i50221_1_, net.minecraft.world.level.Level p_i50221_2_)
    • BlueprintEntity

      public BlueprintEntity(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing, net.minecraft.core.Direction verticalOrientation)
  • Method Details

    • build

      public static net.minecraft.world.entity.EntityType.Builder<?> build(net.minecraft.world.entity.EntityType.Builder<?> builder)
    • getAddEntityPacket

      public net.minecraft.network.protocol.Packet<?> getAddEntityPacket()
      Specified by:
      getAddEntityPacket in class net.minecraft.world.entity.Entity
    • addAdditionalSaveData

      public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag p_213281_1_)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.decoration.HangingEntity
    • readAdditionalSaveData

      public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag p_70037_1_)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.decoration.HangingEntity
    • updateFacingWithBoundingBox

      protected void updateFacingWithBoundingBox(net.minecraft.core.Direction facing, net.minecraft.core.Direction verticalOrientation)
    • getEyeHeight

      protected float getEyeHeight(net.minecraft.world.entity.Pose p_213316_1_, net.minecraft.world.entity.EntityDimensions p_213316_2_)
      Overrides:
      getEyeHeight in class net.minecraft.world.entity.Entity
    • recalculateBoundingBox

      protected void recalculateBoundingBox()
      Overrides:
      recalculateBoundingBox in class net.minecraft.world.entity.decoration.HangingEntity
    • survives

      public boolean survives()
      Overrides:
      survives in class net.minecraft.world.entity.decoration.HangingEntity
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in class net.minecraft.world.entity.decoration.HangingEntity
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in class net.minecraft.world.entity.decoration.HangingEntity
    • skipAttackInteraction

      public boolean skipAttackInteraction(net.minecraft.world.entity.Entity source)
      Overrides:
      skipAttackInteraction in class net.minecraft.world.entity.decoration.HangingEntity
    • dropItem

      public void dropItem(@Nullable net.minecraft.world.entity.Entity p_110128_1_)
      Specified by:
      dropItem in class net.minecraft.world.entity.decoration.HangingEntity
    • getPickedResult

      public net.minecraft.world.item.ItemStack getPickedResult(net.minecraft.world.phys.HitResult target)
      Specified by:
      getPickedResult in interface net.minecraftforge.common.extensions.IForgeEntity
    • getRequiredItems

      public ItemRequirement getRequiredItems()
      Specified by:
      getRequiredItems in interface ISpecialEntityItemRequirement
    • playPlacementSound

      public void playPlacementSound()
      Specified by:
      playPlacementSound in class net.minecraft.world.entity.decoration.HangingEntity
    • moveTo

      public void moveTo(double p_70012_1_, double p_70012_3_, double p_70012_5_, float p_70012_7_, float p_70012_8_)
      Overrides:
      moveTo in class net.minecraft.world.entity.Entity
    • lerpTo

      public void lerpTo(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_)
      Overrides:
      lerpTo in class net.minecraft.world.entity.Entity
    • writeSpawnData

      public void writeSpawnData(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      writeSpawnData in interface net.minecraftforge.entity.IEntityAdditionalSpawnData
    • readSpawnData

      public void readSpawnData(net.minecraft.network.FriendlyByteBuf additionalData)
      Specified by:
      readSpawnData in interface net.minecraftforge.entity.IEntityAdditionalSpawnData
    • interactAt

      public net.minecraft.world.InteractionResult interactAt(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 vec, net.minecraft.world.InteractionHand hand)
      Overrides:
      interactAt in class net.minecraft.world.entity.Entity
    • getSectionAt

      public com.simibubi.create.content.curiosities.tools.BlueprintEntity.BlueprintSection getSectionAt(net.minecraft.world.phys.Vec3 vec)
    • getOrCreateRecipeCompound

      public net.minecraft.nbt.CompoundTag getOrCreateRecipeCompound()
    • getSection

      public com.simibubi.create.content.curiosities.tools.BlueprintEntity.BlueprintSection getSection(int index)
    • onPersistentDataUpdated

      public void onPersistentDataUpdated()
      Specified by:
      onPersistentDataUpdated in interface ISyncPersistentData
    • canPlayerUse

      public boolean canPlayerUse(net.minecraft.world.entity.player.Player player)
      Specified by:
      canPlayerUse in interface IInteractionChecker