public class HopperMinecartEntity extends ContainerMinecartEntity implements IHopper
AbstractMinecartEntity.Type
Entity.IMoveCallback
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
BLOCK_ABOVE_SHAPE, COLLECTION_AREA_SHAPE, INSIDE_BOWL_SHAPE
COLLISIONS, DEFAULT_AIR_DRAG, DEFAULT_MAX_SPEED_AIR_LATERAL, DEFAULT_MAX_SPEED_AIR_VERTICAL
DUMMY
コンストラクタと説明 |
---|
HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> p_i50116_1_,
World p_i50116_2_) |
HopperMinecartEntity(World worldIn,
double x,
double y,
double z) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
canTransfer()
Returns whether the hopper cart can currently transfer an item.
|
boolean |
captureDroppedItems() |
Container |
createContainer(int id,
PlayerInventory playerInventoryIn) |
boolean |
getBlocked()
Get whether this hopper minecart is being blocked by an activator rail.
|
BlockState |
getDefaultDisplayTile() |
int |
getDefaultDisplayTileOffset() |
AbstractMinecartEntity.Type |
getMinecartType() |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
World |
getWorld()
Returns the worldObj for this tileEntity.
|
double |
getXPos()
Gets the world X position for this hopper entity.
|
double |
getYPos()
Gets the world Y position for this hopper entity.
|
double |
getZPos()
Gets the world Z position for this hopper entity.
|
void |
killMinecart(DamageSource source) |
void |
onActivatorRailPass(int x,
int y,
int z,
boolean receivingPower)
Called every tick the minecart is on an activator rail.
|
protected void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setBlocked(boolean p_96110_1_)
Set whether this hopper minecart is being blocked by an activator rail.
|
void |
setTransferTicker(int p_98042_1_)
Sets the transfer ticker, used to determine the delay between transfers.
|
void |
tick()
Called to update the entity's position/logic.
|
protected void |
writeAdditional(CompoundNBT compound) |
addLoot, applyDrag, changeDimension, clear, createMenu, decrStackSize, dropContentsWhenDead, getCapability, getStackInSlot, isEmpty, isUsableByPlayer, markDirty, processInitialInteract, remove, removeStackFromSlot, replaceItemInInventory, setInventorySlotContents, setLootTable
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canTriggerWalking, canUseRail, create, createSpawnPacket, getAdjustedHorizontalFacing, getCollisionBox, getCurrentCartSpeedCapOnRail, getDamage, getDisplayTile, getDisplayTileOffset, getDragAir, getMaximumSpeed, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMaxSpeedWithRail, getMountedYOffset, getPos, getPosOffset, getRenderBoundingBox, getRollingAmplitude, getRollingDirection, hasDisplayTile, moveAlongTrack, moveDerailedMinecart, moveMinecartOnRail, performHurtAnimation, registerData, setCanUseRail, setCurrentCartSpeedCapOnRail, setDamage, setDisplayTile, setDisplayTileOffset, setDragAir, setHasDisplayTile, setMaxSpeedAirLateral, setMaxSpeedAirVertical, setPositionAndRotationDirect, setRollingAmplitude, setRollingDirection, setVelocity
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, baseTick, calculateUpVector, canBeAttackedWithItem, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getServer, getSize, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onLivingFall, onRemovedFromWorld, onStruckByLightning, outOfWorld, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
getCollectionArea
closeInventory, count, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setInventorySlotContents
clear, clearObj
getDisplayName
canBeRidden, getCartItem, getCollisionHandler, getComparatorLevel, getCurrentRailPosition, getMaxCartSpeedOnRail, getMinecart, getSlopeAdjustment, isPoweredCart, shouldDoRailFunctions
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> p_i50116_1_, World p_i50116_2_)
public HopperMinecartEntity(World worldIn, double x, double y, double z)
public AbstractMinecartEntity.Type getMinecartType()
getMinecartType
クラス内 AbstractMinecartEntity
public BlockState getDefaultDisplayTile()
getDefaultDisplayTile
クラス内 AbstractMinecartEntity
public int getDefaultDisplayTileOffset()
getDefaultDisplayTileOffset
クラス内 AbstractMinecartEntity
public int getSizeInventory()
getSizeInventory
インタフェース内 IInventory
public void onActivatorRailPass(int x, int y, int z, boolean receivingPower)
onActivatorRailPass
クラス内 AbstractMinecartEntity
public boolean getBlocked()
public void setBlocked(boolean p_96110_1_)
public World getWorld()
public double getXPos()
public double getYPos()
public double getZPos()
public void tick()
tick
クラス内 AbstractMinecartEntity
public boolean captureDroppedItems()
public void killMinecart(DamageSource source)
killMinecart
クラス内 ContainerMinecartEntity
protected void writeAdditional(CompoundNBT compound)
writeAdditional
クラス内 ContainerMinecartEntity
protected void readAdditional(CompoundNBT compound)
readAdditional
クラス内 ContainerMinecartEntity
public void setTransferTicker(int p_98042_1_)
public boolean canTransfer()
public Container createContainer(int id, PlayerInventory playerInventoryIn)
createContainer
クラス内 ContainerMinecartEntity