tutorial:containers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorial:containers [2020/08/14 07:49] – evil cast my smol brain no understand leocth2 | tutorial:containers [2022/05/27 15:57] (current) – solidblock | ||
---|---|---|---|
Line 109: | Line 109: | ||
@Override | @Override | ||
protected Text getContainerName() { | protected Text getContainerName() { | ||
+ | // versions 1.18.2 and below | ||
return new TranslatableText(" | return new TranslatableText(" | ||
+ | // versions since 1.19 | ||
+ | return Text.translatable(" | ||
} | } | ||
Line 274: | Line 277: | ||
public void onInitializeClient() { | public void onInitializeClient() { | ||
[...] | [...] | ||
- | ScreenProviderRegistry.INSTANCE.< | + | ScreenProviderRegistry.INSTANCE.< |
} | } | ||
</ | </ | ||
Line 305: | Line 308: | ||
@Override | @Override | ||
public void onInitializeClient() { | public void onInitializeClient() { | ||
- | ScreenProviderRegistry.INSTANCE.< | + | ScreenProviderRegistry.INSTANCE.< |
} | } | ||
</ | </ |
tutorial/containers.txt · Last modified: 2022/05/27 15:57 by solidblock