Class CustomChestBoatEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.vehicle.Boat
com.idark.valoria.registries.entity.decoration.CustomBoatEntity
com.idark.valoria.registries.entity.decoration.CustomChestBoatEntity
- All Implemented Interfaces:
net.minecraft.commands.CommandSource
,net.minecraft.world.Clearable
,net.minecraft.world.Container
,net.minecraft.world.entity.HasCustomInventoryScreen
,net.minecraft.world.entity.vehicle.ContainerEntity
,net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.level.entity.EntityAccess
,net.minecraft.world.MenuProvider
,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.IForgeBoat
,net.minecraftforge.common.extensions.IForgeEntity
,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class CustomChestBoatEntity
extends CustomBoatEntity
implements net.minecraft.world.entity.HasCustomInventoryScreen, net.minecraft.world.entity.vehicle.ContainerEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class com.idark.valoria.registries.entity.decoration.CustomBoatEntity
CustomBoatEntity.Type
Nested classes/interfaces inherited from class net.minecraft.world.entity.vehicle.Boat
net.minecraft.world.entity.vehicle.Boat.Status
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>>
-
Field Summary
Fields inherited from class net.minecraft.world.entity.vehicle.Boat
BUBBLE_TIME, PADDLE_LEFT, PADDLE_RIGHT, PADDLE_SOUND_TIME
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_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
Constructor Summary
ConstructorDescriptionCustomChestBoatEntity
(net.minecraft.world.entity.EntityType<? extends CustomBoatEntity> type, net.minecraft.world.level.Level level) CustomChestBoatEntity
(net.minecraft.world.level.Level level, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(net.minecraft.nbt.CompoundTag tag) void
void
net.minecraft.world.inventory.AbstractContainerMenu
createMenu
(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) void
destroy
(net.minecraft.world.damagesource.DamageSource damageSource) int
@NotNull net.minecraft.world.item.Item
net.minecraft.world.item.ItemStack
getItem
(int index) net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
net.minecraft.resources.ResourceLocation
long
protected int
protected float
net.minecraft.world.entity.SlotAccess
getSlot
(int index) net.minecraft.world.InteractionResult
interact
(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) void
openCustomInventoryScreen
(net.minecraft.world.entity.player.Player player) protected void
readAdditionalSaveData
(net.minecraft.nbt.CompoundTag tag) void
remove
(net.minecraft.world.entity.Entity.RemovalReason reason) net.minecraft.world.item.ItemStack
removeItem
(int index, int amount) net.minecraft.world.item.ItemStack
removeItemNoUpdate
(int index) void
void
setItem
(int index, net.minecraft.world.item.ItemStack stack) void
setLootTable
(net.minecraft.resources.ResourceLocation location) void
setLootTableSeed
(long seed) boolean
stillValid
(net.minecraft.world.entity.player.Player player) void
unpackLootTable
(net.minecraft.world.entity.player.Player player) Methods inherited from class com.idark.valoria.registries.entity.decoration.CustomBoatEntity
defineSynchedData, getAddEntityPacket, getCustomBoatEntityType, setCustomBoatEntityType
Methods inherited from class net.minecraft.world.entity.vehicle.Boat
addPassenger, animateHurt, canAddPassenger, canBeCollidedWith, canCollideWith, canVehicleCollide, checkFallDamage, clampRotation, getBubbleAngle, getControllingPassenger, getDamage, getDismountLocationForPassenger, getEyeHeight, getGroundFriction, getHurtDir, getHurtTime, getMotionDirection, getMovementEmission, getPaddleSound, getPaddleState, getPassengersRidingOffset, getPickResult, getRelativePortalPosition, getRowingTime, getVariant, getWaterLevelAbove, hasEnoughSpaceFor, hurt, isPickable, isPushable, isUnderWater, lerpTo, onAboveBubbleCol, onPassengerTurned, positionRider, push, setDamage, setHurtDir, setHurtTime, setInput, setPaddleState, setVariant, tick
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addTag, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeHitByProjectile, canChangeDimensions, canEnterPose, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDimensionsForge, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getHandSlots, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getVisualRotationYInDegrees, getX, getX, getXRot, getY, getY, getYHeadRot, getYRot, getZ, getZ, handleDamageEvent, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killedEntity, lavaHurt, lerpHeadTo, lerpMotion, level, limitPistonMovement, load, lookAt, makeBoundingBox, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAddedToWorld, onBelowWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onRemovedFromWorld, onSyncedDataUpdated, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, recreateFromPacket, refreshDimensions, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setItemSlot, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, 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, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
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.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
Methods inherited from interface net.minecraft.world.entity.vehicle.ContainerEntity
addChestVehicleSaveData, chestVehicleDestroyed, clearChestVehicleContent, getChestVehicleItem, getChestVehicleSlot, interactWithContainerVehicle, isChestVehicleEmpty, isChestVehicleStillValid, isEmpty, isRemoved, level, position, readChestVehicleSaveData, removeChestVehicleItem, removeChestVehicleItemNoUpdate, setChestVehicleItem, unpackChestVehicleLootTable
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBoat
canBoatInFluid, canBoatInFluid, shouldUpdateFluidWhileRiding
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getEyeHeightForge, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
Methods inherited from interface net.minecraft.world.MenuProvider
getDisplayName
-
Constructor Details
-
CustomChestBoatEntity
public CustomChestBoatEntity(net.minecraft.world.entity.EntityType<? extends CustomBoatEntity> type, net.minecraft.world.level.Level level) -
CustomChestBoatEntity
public CustomChestBoatEntity(net.minecraft.world.level.Level level, double x, double y, double z)
-
-
Method Details
-
getSinglePassengerXOffset
protected float getSinglePassengerXOffset()- Overrides:
getSinglePassengerXOffset
in classnet.minecraft.world.entity.vehicle.Boat
-
getMaxPassengers
protected int getMaxPassengers()- Overrides:
getMaxPassengers
in classnet.minecraft.world.entity.vehicle.Boat
-
addAdditionalSaveData
protected void addAdditionalSaveData(net.minecraft.nbt.CompoundTag tag) - Overrides:
addAdditionalSaveData
in classCustomBoatEntity
-
readAdditionalSaveData
protected void readAdditionalSaveData(net.minecraft.nbt.CompoundTag tag) - Overrides:
readAdditionalSaveData
in classCustomBoatEntity
-
destroy
public void destroy(net.minecraft.world.damagesource.DamageSource damageSource) - Overrides:
destroy
in classnet.minecraft.world.entity.vehicle.Boat
-
remove
public void remove(net.minecraft.world.entity.Entity.RemovalReason reason) - Overrides:
remove
in classnet.minecraft.world.entity.Entity
-
interact
public net.minecraft.world.InteractionResult interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
interact
in classnet.minecraft.world.entity.vehicle.Boat
-
openCustomInventoryScreen
public void openCustomInventoryScreen(net.minecraft.world.entity.player.Player player) - Specified by:
openCustomInventoryScreen
in interfacenet.minecraft.world.entity.HasCustomInventoryScreen
-
getDropItem
@NotNull public @NotNull net.minecraft.world.item.Item getDropItem()- Overrides:
getDropItem
in classCustomBoatEntity
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfacenet.minecraft.world.Clearable
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfacenet.minecraft.world.Container
-
getItem
public net.minecraft.world.item.ItemStack getItem(int index) - Specified by:
getItem
in interfacenet.minecraft.world.Container
-
removeItem
public net.minecraft.world.item.ItemStack removeItem(int index, int amount) - Specified by:
removeItem
in interfacenet.minecraft.world.Container
-
removeItemNoUpdate
public net.minecraft.world.item.ItemStack removeItemNoUpdate(int index) - Specified by:
removeItemNoUpdate
in interfacenet.minecraft.world.Container
-
setItem
public void setItem(int index, net.minecraft.world.item.ItemStack stack) - Specified by:
setItem
in interfacenet.minecraft.world.Container
-
getSlot
public net.minecraft.world.entity.SlotAccess getSlot(int index) - Overrides:
getSlot
in classnet.minecraft.world.entity.Entity
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfacenet.minecraft.world.Container
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValid
in interfacenet.minecraft.world.Container
-
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) - Specified by:
createMenu
in interfacenet.minecraft.world.inventory.MenuConstructor
-
unpackLootTable
public void unpackLootTable(@Nullable net.minecraft.world.entity.player.Player player) -
getLootTable
@Nullable public net.minecraft.resources.ResourceLocation getLootTable()- Specified by:
getLootTable
in interfacenet.minecraft.world.entity.vehicle.ContainerEntity
-
setLootTable
public void setLootTable(@Nullable net.minecraft.resources.ResourceLocation location) - Specified by:
setLootTable
in interfacenet.minecraft.world.entity.vehicle.ContainerEntity
-
getLootTableSeed
public long getLootTableSeed()- Specified by:
getLootTableSeed
in interfacenet.minecraft.world.entity.vehicle.ContainerEntity
-
setLootTableSeed
public void setLootTableSeed(long seed) - Specified by:
setLootTableSeed
in interfacenet.minecraft.world.entity.vehicle.ContainerEntity
-
getItemStacks
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getItemStacks()- Specified by:
getItemStacks
in interfacenet.minecraft.world.entity.vehicle.ContainerEntity
-
clearItemStacks
public void clearItemStacks()- Specified by:
clearItemStacks
in interfacenet.minecraft.world.entity.vehicle.ContainerEntity
-