forked from FabricMC/fabric-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-mod.classtweaker
More file actions
23 lines (17 loc) · 1.07 KB
/
example-mod.classtweaker
File metadata and controls
23 lines (17 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
classTweaker v1 named
# Access widening examples
# The targets for these examples are non-transitive versions of Fabric API access wideners for 1.21.11
# :::accesswidening-examples:classes:::
# Makes the inner class TypeSpecificTrade in VillagerTrades public
accessible class net/minecraft/world/entity/npc/villager/VillagerTrades$TypeSpecificTrade
# :::accesswidening-examples:classes:::
# :::accesswidening-examples:methods:::
# Makes the SensorType(Supplier) constructor public
accessible method net/minecraft/world/entity/ai/sensing/SensorType <init> (Ljava/util/function/Supplier;)V
# Makes the formatValue() method of return type String in TextColor public
accessible method net/minecraft/network/chat/TextColor formatValue ()Ljava/lang/String;
# :::accesswidening-examples:methods:::
# :::accesswidening-examples:fields:::
# Makes the field damageTypes of type Registry in DamageSources public.
accessible field net/minecraft/world/damagesource/DamageSources damageTypes Lnet/minecraft/core/Registry;
# :::accesswidening-examples:fields:::