Class TheEndGatewayBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.TheEndPortalBlockEntity
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity
- All Implemented Interfaces:
- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate longprivate static final intprivate static final intprivate static final intprivate booleanprivate BlockPosprivate static final intprivate static final org.slf4j.Loggerprivate static final intprivate intFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidbeamAnimationTick(Level p_155835_, BlockPos p_155836_, BlockState p_155837_, TheEndGatewayBlockEntity p_155838_) static booleancanEntityTeleport(Entity p_59941_) private static Vec3findExitPortalXZPosTentative(ServerLevel p_155842_, BlockPos p_155843_) private static BlockPosfindExitPosition(Level p_155826_, BlockPos p_155827_) private static BlockPosfindOrCreateValidTeleportPos(ServerLevel p_155819_, BlockPos p_155820_) private static BlockPosfindTallestBlock(BlockGetter p_59943_, BlockPos p_59944_, int p_59945_, boolean p_59946_) private static BlockPosfindValidSpawnInChunk(LevelChunk p_59954_) private static LevelChunkfloatgetCooldownPercent(float p_59968_) intfloatgetSpawnPercent(float p_59934_) private static booleanisChunkEmpty(ServerLevel p_155816_, Vec3 p_155817_) booleanbooleanvoidload(CompoundTag p_155840_) protected voidsaveAdditional(CompoundTag p_187527_) voidsetExitPosition(BlockPos p_59956_, boolean p_59957_) booleanshouldRenderFace(Direction p_59959_) private static voidspawnGatewayPortal(ServerLevel p_155822_, BlockPos p_155823_, EndGatewayConfiguration p_155824_) static voidteleportEntity(Level p_155829_, BlockPos p_155830_, BlockState p_155831_, Entity p_155832_, TheEndGatewayBlockEntity p_155833_) static voidteleportTick(Level p_155845_, BlockPos p_155846_, BlockState p_155847_, TheEndGatewayBlockEntity p_155848_) private static voidtriggerCooldown(Level p_155850_, BlockPos p_155851_, BlockState p_155852_, TheEndGatewayBlockEntity p_155853_) booleantriggerEvent(int p_59963_, int p_59964_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemovedMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
SPAWN_TIMEprivate static final int SPAWN_TIME- See Also:
 
- 
COOLDOWN_TIMEprivate static final int COOLDOWN_TIME- See Also:
 
- 
ATTENTION_INTERVALprivate static final int ATTENTION_INTERVAL- See Also:
 
- 
EVENT_COOLDOWNprivate static final int EVENT_COOLDOWN- See Also:
 
- 
GATEWAY_HEIGHT_ABOVE_SURFACEprivate static final int GATEWAY_HEIGHT_ABOVE_SURFACE- See Also:
 
- 
ageprivate long age
- 
teleportCooldownprivate int teleportCooldown
- 
exitPortal
- 
exactTeleportprivate boolean exactTeleport
 
- 
- 
Constructor Details- 
TheEndGatewayBlockEntity
 
- 
- 
Method Details- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
beamAnimationTickpublic static void beamAnimationTick(Level p_155835_, BlockPos p_155836_, BlockState p_155837_, TheEndGatewayBlockEntity p_155838_) 
- 
teleportTickpublic static void teleportTick(Level p_155845_, BlockPos p_155846_, BlockState p_155847_, TheEndGatewayBlockEntity p_155848_) 
- 
canEntityTeleport
- 
isSpawningpublic boolean isSpawning()
- 
isCoolingDownpublic boolean isCoolingDown()
- 
getSpawnPercentpublic float getSpawnPercent(float p_59934_) 
- 
getCooldownPercentpublic float getCooldownPercent(float p_59968_) 
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
triggerCooldownprivate static void triggerCooldown(Level p_155850_, BlockPos p_155851_, BlockState p_155852_, TheEndGatewayBlockEntity p_155853_) 
- 
triggerEventpublic boolean triggerEvent(int p_59963_, int p_59964_) - Overrides:
- triggerEventin class- BlockEntity
 
- 
teleportEntitypublic static void teleportEntity(Level p_155829_, BlockPos p_155830_, BlockState p_155831_, Entity p_155832_, TheEndGatewayBlockEntity p_155833_) 
- 
findExitPosition
- 
findOrCreateValidTeleportPos
- 
findExitPortalXZPosTentative
- 
isChunkEmpty
- 
findTallestBlockprivate static BlockPos findTallestBlock(BlockGetter p_59943_, BlockPos p_59944_, int p_59945_, boolean p_59946_) 
- 
getChunk
- 
findValidSpawnInChunk
- 
spawnGatewayPortalprivate static void spawnGatewayPortal(ServerLevel p_155822_, BlockPos p_155823_, EndGatewayConfiguration p_155824_) 
- 
shouldRenderFace- Overrides:
- shouldRenderFacein class- TheEndPortalBlockEntity
 
- 
getParticleAmountpublic int getParticleAmount()
- 
setExitPosition
 
-