Interface ResourceType
@API(status=STABLE,
since="2.0.0-milestone.3.4")
public interface ResourceType
-
Method Summary
Modifier and TypeMethodDescriptioncreateGridOperations
(RootStorage rootStorage, Actor actor) double
getDisplayAmount
(long amount) long
com.mojang.serialization.MapCodec
<PlatformResourceKey> net.minecraft.resources.ResourceLocation
net.minecraft.network.codec.StreamCodec
<net.minecraft.network.RegistryFriendlyByteBuf, PlatformResourceKey> net.minecraft.network.chat.MutableComponent
getTitle()
long
normalizeAmount
(double amount) toGridResource
(ResourceKey resource)
-
Method Details
-
getMapCodec
com.mojang.serialization.MapCodec<PlatformResourceKey> getMapCodec() -
getStreamCodec
net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,PlatformResourceKey> getStreamCodec() -
getTitle
net.minecraft.network.chat.MutableComponent getTitle() -
getSprite
net.minecraft.resources.ResourceLocation getSprite() -
normalizeAmount
long normalizeAmount(double amount) -
getDisplayAmount
double getDisplayAmount(long amount) -
toGridResource
-
getInterfaceExportLimit
long getInterfaceExportLimit() -
createGridOperations
-