Class CorporeaIndexBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.corporea.BaseCorporeaBlockEntity
vazkii.botania.common.block.block_entity.corporea.CorporeaIndexBlockEntity
- All Implemented Interfaces:
CorporeaRequestor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbooleanstatic final intstatic final doubleintFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionCorporeaIndexBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPattern(String pattern, CorporeaIndexBlockEntity.IRegexStacker stacker) static voidstatic voidcommonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, CorporeaIndexBlockEntity self) voiddoCorporeaRequest(CorporeaRequestMatcher request, int count, CorporeaSpark spark, @Nullable net.minecraft.world.entity.LivingEntity entity) Executes the passed in request.static List<CorporeaIndexBlockEntity> getNearbyValidIndexes(net.minecraft.world.entity.player.Player player) static intstatic voidonChatMessage(net.minecraft.server.level.ServerPlayer player, String message) voidperformPlayerRequest(net.minecraft.server.level.ServerPlayer player, CorporeaRequestMatcher request, int count) voidMethods inherited from class vazkii.botania.common.block.block_entity.corporea.BaseCorporeaBlockEntity
getSparkMethods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity
getUpdatePacket, getUpdateTag, loadAdditional, readPacketNBT, saveAdditional, writePacketNBTMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, triggerEvent
-
Field Details
-
RADIUS
public static final double RADIUS- See Also:
-
MAX_REQUEST
public static final int MAX_REQUEST- See Also:
-
ticksWithCloseby
public int ticksWithCloseby -
closeby
public float closeby -
hasCloseby
public boolean hasCloseby
-
-
Constructor Details
-
CorporeaIndexBlockEntity
public CorporeaIndexBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
commonTick
public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, CorporeaIndexBlockEntity self) -
getNearbyValidIndexes
public static List<CorporeaIndexBlockEntity> getNearbyValidIndexes(net.minecraft.world.entity.player.Player player) -
setRemoved
public void setRemoved()- Overrides:
setRemovedin classnet.minecraft.world.level.block.entity.BlockEntity
-
doCorporeaRequest
public void doCorporeaRequest(CorporeaRequestMatcher request, int count, CorporeaSpark spark, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entity) Description copied from interface:CorporeaRequestorExecutes the passed in request.- Specified by:
doCorporeaRequestin interfaceCorporeaRequestor
-
addPattern
-
i
-
clearIndexCache
public static void clearIndexCache() -
performPlayerRequest
public void performPlayerRequest(net.minecraft.server.level.ServerPlayer player, CorporeaRequestMatcher request, int count) -
onChatMessage
-