Package at.petrak.hexcasting.xplat
Interface IXplatAbstractions
public interface IXplatAbstractions
more like IHexplatAbstracts lmaooooooo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.authlib.GameProfilestatic final IXplatAbstractions -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item.PropertiesaddEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot) No-op on forge (use a SoftImplement)voidclearCastingData(net.minecraft.server.level.ServerPlayer player) <T extends net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntityType<T>createBlockEntityType(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> func, net.minecraft.world.level.block.Block... blocks) booleandrainAllFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) @Nullable ADIotaHolderfindDataHolder(net.minecraft.world.entity.Entity entity) @Nullable ADIotaHolderfindDataHolder(net.minecraft.world.item.ItemStack stack) @Nullable ADHexHolderfindHexHolder(net.minecraft.world.item.ItemStack stack) @Nullable ADMediaHolderfindMediaHolder(net.minecraft.server.level.ServerPlayer player) @Nullable ADMediaHolderfindMediaHolder(net.minecraft.world.item.ItemStack stack) @Nullable ADVariantItemfindVariantHolder(net.minecraft.world.item.ItemStack stack) net.minecraft.core.Registry<ActionRegistryEntry>Registry for actions.@Nullable AltioraAbilitygetAltiora(net.minecraft.world.entity.player.Player player) net.minecraft.core.Registry<Arithmetic>getColorProvider(FrozenPigment pigment) net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.vm.ContinuationFrame.Type<?>>net.minecraft.core.Registry<EvalSound>@Nullable FlightAbilitygetFlight(net.minecraft.server.level.ServerPlayer player) net.minecraft.core.Registry<IotaType<?>>getModName(String namespace) List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern>getPatternsSavedInUi(net.minecraft.server.level.ServerPlayer player) getPigment(net.minecraft.world.entity.player.Player player) @Nullable SentinelgetSentinel(net.minecraft.world.entity.player.Player player) net.minecraft.core.Registry<SpecialHandler.Factory<?>>at.petrak.hexcasting.api.casting.eval.vm.CastingVMgetStaffcastVM(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand) net.minecraft.world.item.crafting.IngredientgetUnsealedIngredient(net.minecraft.world.item.ItemStack stack) voidbooleanisBrainswept(net.minecraft.world.entity.Mob mob) booleanisBreakingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.entity.player.Player player) booleanisCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs) booleanisModPresent(String id) booleanbooleanisPigment(net.minecraft.world.item.ItemStack stack) booleanisPlacingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack blockStack, @Nullable net.minecraft.world.entity.player.Player player) net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderplatform()voidsendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, IMessage packet) voidsendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, IMessage packet) voidsendPacketTracking(net.minecraft.world.entity.Entity entity, IMessage packet) voidsetAltiora(net.minecraft.world.entity.player.Player target, @Nullable AltioraAbility altiora) voidsetBrainsweepAddlData(net.minecraft.world.entity.Mob mob) Doesn't actually knock out its AI or anything anymore, just sets caps/ccsvoidsetFlight(net.minecraft.server.level.ServerPlayer target, @Nullable FlightAbility flight) voidsetPatterns(net.minecraft.server.level.ServerPlayer target, List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> patterns) @Nullable FrozenPigmentsetPigment(net.minecraft.world.entity.player.Player target, @Nullable FrozenPigment colorizer) voidsetSentinel(net.minecraft.world.entity.player.Player target, @Nullable Sentinel sentinel) voidsetStaffcastImage(net.minecraft.server.level.ServerPlayer target, @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image) tags()net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>toVanillaClientboundPacket(IMessage message) booleantryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid)
-
Field Details
-
HEXCASTING
static final com.mojang.authlib.GameProfile HEXCASTING -
INSTANCE
-
-
Method Details
-
platform
Platform platform() -
isModPresent
-
isPhysicalClient
boolean isPhysicalClient() -
initPlatformSpecific
void initPlatformSpecific() -
sendPacketToPlayer
-
sendPacketNear
void sendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, IMessage packet) -
sendPacketTracking
-
toVanillaClientboundPacket
net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> toVanillaClientboundPacket(IMessage message) -
setBrainsweepAddlData
void setBrainsweepAddlData(net.minecraft.world.entity.Mob mob) Doesn't actually knock out its AI or anything anymore, just sets caps/ccs -
isBrainswept
boolean isBrainswept(net.minecraft.world.entity.Mob mob) -
setPigment
@Nullable @Nullable FrozenPigment setPigment(net.minecraft.world.entity.player.Player target, @Nullable @Nullable FrozenPigment colorizer) -
setSentinel
void setSentinel(net.minecraft.world.entity.player.Player target, @Nullable @Nullable Sentinel sentinel) -
setFlight
void setFlight(net.minecraft.server.level.ServerPlayer target, @Nullable @Nullable FlightAbility flight) -
setAltiora
void setAltiora(net.minecraft.world.entity.player.Player target, @Nullable @Nullable AltioraAbility altiora) -
setStaffcastImage
void setStaffcastImage(net.minecraft.server.level.ServerPlayer target, @Nullable @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image) -
setPatterns
void setPatterns(net.minecraft.server.level.ServerPlayer target, List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> patterns) -
getFlight
-
getAltiora
-
getPigment
-
getSentinel
-
getStaffcastVM
at.petrak.hexcasting.api.casting.eval.vm.CastingVM getStaffcastVM(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand) -
getPatternsSavedInUi
List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> getPatternsSavedInUi(net.minecraft.server.level.ServerPlayer player) -
clearCastingData
void clearCastingData(net.minecraft.server.level.ServerPlayer player) -
findMediaHolder
-
findMediaHolder
-
findDataHolder
-
findDataHolder
-
findHexHolder
-
findVariantHolder
-
isPigment
boolean isPigment(net.minecraft.world.item.ItemStack stack) -
getColorProvider
-
addEquipSlotFabric
net.minecraft.world.item.Item.Properties addEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot) No-op on forge (use a SoftImplement) -
createBlockEntityType
<T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> createBlockEntityType(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> func, net.minecraft.world.level.block.Block... blocks) -
tryPlaceFluid
boolean tryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid) -
drainAllFluid
boolean drainAllFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
isCorrectTierForDrops
boolean isCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs) -
getUnsealedIngredient
net.minecraft.world.item.crafting.Ingredient getUnsealedIngredient(net.minecraft.world.item.ItemStack stack) -
tags
IXplatTags tags() -
isShearsCondition
net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder isShearsCondition() -
getModName
-
getActionRegistry
net.minecraft.core.Registry<ActionRegistryEntry> getActionRegistry()Registry for actions.There's some internal caching (so we can directly look up signatures in a map, for example) but this registry is the source of truth.
-
getSpecialHandlerRegistry
net.minecraft.core.Registry<SpecialHandler.Factory<?>> getSpecialHandlerRegistry() -
getIotaTypeRegistry
net.minecraft.core.Registry<IotaType<?>> getIotaTypeRegistry() -
getArithmeticRegistry
net.minecraft.core.Registry<Arithmetic> getArithmeticRegistry() -
getContinuationTypeRegistry
net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.vm.ContinuationFrame.Type<?>> getContinuationTypeRegistry() -
getEvalSoundRegistry
net.minecraft.core.Registry<EvalSound> getEvalSoundRegistry() -
isBreakingAllowed
boolean isBreakingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.entity.player.Player player) -
isPlacingAllowed
boolean isPlacingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack blockStack, @Nullable @Nullable net.minecraft.world.entity.player.Player player) -
getPehkuiApi
PehkuiInterop.ApiAbstraction getPehkuiApi()
-